Skip to content

Commit f2c357d

Browse files
fix: isolate the build, lint and coverage CI jobs (#2178)
1 parent 3e5fa12 commit f2c357d

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
key: ${{ env.CACHE_KEY }}
5555

5656
coverage:
57-
needs: build
5857
name: Run Coverage Tests
5958
runs-on: ubuntu-latest
6059

@@ -77,11 +76,8 @@ jobs:
7776
node-version: ${{ matrix.node }}
7877
cache: "pnpm"
7978

80-
- name: Restore build artifacts
81-
uses: actions/cache/restore@v4
82-
with:
83-
path: .
84-
key: ${{ env.CACHE_KEY }}
79+
- name: Install dependencies
80+
run: pnpm install --frozen-lockfile
8581

8682
- name: Run Test Coverage
8783
run: pnpm test:coverage
@@ -92,8 +88,6 @@ jobs:
9288
token: ${{ secrets.CODECOV_TOKEN }}
9389

9490
lint:
95-
needs: build # Require build to complete before running tests
96-
9791
name: Lint Code
9892
runs-on: ubuntu-latest
9993

@@ -112,11 +106,8 @@ jobs:
112106
node-version: 22
113107
cache: "pnpm"
114108

115-
- name: Restore build artifacts
116-
uses: actions/cache/restore@v4
117-
with:
118-
path: .
119-
key: ${{ env.CACHE_KEY }}
109+
- name: Install dependencies
110+
run: pnpm install --frozen-lockfile
120111

121112
- name: Run Lint
122113
run: pnpm run lint

0 commit comments

Comments
 (0)