Skip to content

Commit 91bbad7

Browse files
chore: lint workflow (#2024)
Co-authored-by: gabriel miranda <[email protected]>
1 parent 5369062 commit 91bbad7

File tree

2 files changed

+33
-39
lines changed

2 files changed

+33
-39
lines changed

.github/workflows/lint.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
lint:
9+
runs-on: buildjet-4vcpu-ubuntu-2204
10+
container:
11+
image: node:22
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: pnpm setup
16+
uses: pnpm/action-setup@v4
17+
- name: pnpm Cache
18+
uses: buildjet/cache@v4
19+
with:
20+
path: |
21+
~/.pnpm-store
22+
node_modules
23+
*/*/node_modules
24+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
25+
restore-keys: |
26+
${{ runner.os }}-pnpm-
27+
- name: Install packages
28+
if: steps.pnpm-cache.outputs.cache-hit != 'true'
29+
run: pnpm install --frozen-lockfile
30+
- name: Run Lint
31+
run: pnpm lint
32+
env:
33+
SKIP_ENV_VALIDATION: true

.github/workflows/tests.yml

-39
Original file line numberDiff line numberDiff line change
@@ -48,45 +48,6 @@ jobs:
4848
4949
- name: Run Build
5050
run: pnpm build
51-
52-
lint:
53-
runs-on: buildjet-4vcpu-ubuntu-2204
54-
needs: [build]
55-
container:
56-
image: node:22
57-
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v4
60-
61-
- name: Setup pnpm
62-
run: |
63-
corepack enable
64-
corepack prepare [email protected] --activate
65-
66-
- name: Restore dependencies
67-
uses: buildjet/cache@v4
68-
with:
69-
path: |
70-
~/.pnpm-store
71-
node_modules
72-
*/*/node_modules
73-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
74-
75-
- name: turborepo Cache
76-
uses: buildjet/cache@v4
77-
with:
78-
path: |
79-
.turbo
80-
key: ${{ runner.os }}-turbo-${{ github.sha }}
81-
restore-keys: |
82-
${{ runner.os }}-turbo-
83-
84-
- name: Run Build
85-
run: pnpm build
86-
87-
- name: Run Lint
88-
run: pnpm lint
89-
9051
test:
9152
runs-on: buildjet-4vcpu-ubuntu-2204
9253
needs: [build]

0 commit comments

Comments
 (0)