-
-
Notifications
You must be signed in to change notification settings - Fork 11
106 lines (104 loc) · 2.78 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: install plugin
run: pnpm install
- name: install e2e
run: pnpm install
working-directory: e2e
- name: lint plugin and e2e
run: pnpm run lint:all
# lint the e2e repos
# e2e repos need the plugin to be built
- run: pnpm run build
- name: install tailwindv3
run: pnpm install
working-directory: e2e/test_repos/repos/tailwindv3/repo
- name: lint tailwindv3
run: pnpm run lint
working-directory: e2e/test_repos/repos/tailwindv3/repo
type_check:
name: type check
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: install plugin
run: pnpm install
- name: type-check plugin
run: pnpm run type-check
# type check the e2e repos
# e2e repos need the plugin to be built
- run: pnpm run build
- name: install tailwindv3
run: pnpm install
working-directory: e2e/test_repos/repos/tailwindv3/repo
- name: type-check tailwindv3
run: pnpm run type-check
working-directory: e2e/test_repos/repos/tailwindv3/repo
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install
- run: pnpm run test
- name: report coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2
e2e:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- run: pnpm install
working-directory: e2e
- run: pnpm run e2e
working-directory: e2e
- name: upload playwright report
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 30