Skip to content

Commit 38d095e

Browse files
authored
ci: run each CI on GitHub Actions (#38)
1 parent fa61958 commit 38d095e

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
branches: ['*']
77

88
jobs:
9-
ci:
9+
vite:
10+
name: 'Vite'
1011
runs-on: ubuntu-latest
1112
defaults:
1213
run:
@@ -22,4 +23,61 @@ jobs:
2223
- run: npm install
2324
- run: npx playwright install --with-deps
2425
- run: npm run build
25-
- run: npm run test
26+
- run: npm run test:e2e:vite
27+
28+
cloudflare-pages:
29+
name: 'Cloudflare Pages'
30+
runs-on: ubuntu-latest
31+
defaults:
32+
run:
33+
working-directory: ./
34+
strategy:
35+
matrix:
36+
node: [20, 22]
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version: ${{ matrix.node }}
42+
- run: npm install
43+
- run: npx playwright install --with-deps
44+
- run: npm run build
45+
- run: npm run test:e2e:cloudflare-pages
46+
47+
cloudflare-workers:
48+
name: 'Cloudflare Workers'
49+
runs-on: ubuntu-latest
50+
defaults:
51+
run:
52+
working-directory: ./
53+
strategy:
54+
matrix:
55+
node: [20, 22]
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: ${{ matrix.node }}
61+
- run: npm install
62+
- run: npx playwright install --with-deps
63+
- run: npm run build
64+
- run: npm run test:e2e:cloudflare-workers
65+
66+
node:
67+
name: 'Node.js'
68+
runs-on: ubuntu-latest
69+
defaults:
70+
run:
71+
working-directory: ./
72+
strategy:
73+
matrix:
74+
node: [20, 22]
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: actions/setup-node@v4
78+
with:
79+
node-version: ${{ matrix.node }}
80+
- run: npm install
81+
- run: npx playwright install --with-deps
82+
- run: npm run build
83+
- run: npm run test:e2e:node

0 commit comments

Comments
 (0)