Skip to content

Commit c307990

Browse files
committed
🚀 meta: break up linting+checking and testing
1 parent 43e34c3 commit c307990

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/lint-check-and-test.yml

+26-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,35 @@ name: Lint, check, and test every commit and PR
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "projects/site/**"
57
push:
8+
paths-ignore:
9+
- "projects/site/**"
610

711
jobs:
8-
lint-check-and-test:
12+
lint-and-check:
13+
strategy:
14+
matrix:
15+
node-version: [14]
16+
os: [ubuntu-latest]
17+
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 15
19+
steps:
20+
- uses: actions/checkout@v1
21+
- uses: actions/setup-node@v2-beta
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
registry-url: https://registry.npmjs.org/
25+
- uses: pnpm/[email protected]
26+
with:
27+
version: 5.18.x
28+
- run: pnpm install
29+
- run: pnpm run lint
30+
- run: pnpm -r run check
31+
32+
test:
33+
needs: lint-and-check
934
strategy:
1035
matrix:
1136
node-version: [12, 14]
@@ -24,6 +49,4 @@ jobs:
2449
version: 5.18.x
2550
- run: pnpm install
2651
- run: cd projects/tailwindcss-theme-variants && pnpm install --save tailwindcss@${{ matrix.tailwindcss-version }}
27-
- run: pnpm run lint
28-
- run: pnpm -r run check
2952
- run: pnpm -r run test

0 commit comments

Comments
 (0)