-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (49 loc) · 1.35 KB
/
lint-check-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Lint, check, and test every commit and PR
on:
pull_request:
paths-ignore:
- "projects/site/**"
push:
paths-ignore:
- "projects/site/**"
jobs:
lint-and-check:
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm run lint
- run: pnpm -r run check
test:
needs: lint-and-check
strategy:
matrix:
node-version: [14, 16, 18]
os: [ubuntu-latest, windows-latest, macOS-latest]
tailwindcss-version: ["^2", "^3"]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: cd projects/tailwindcss-theme-variants && pnpm install --save tailwindcss@${{ matrix.tailwindcss-version }}
- run: pnpm -r run test