Skip to content

Commit

Permalink
ci: run each CI on GitHub Actions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Nov 29, 2024
1 parent fa61958 commit 38d095e
Showing 1 changed file with 60 additions and 2 deletions.
62 changes: 60 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
branches: ['*']

jobs:
ci:
vite:
name: 'Vite'
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -22,4 +23,61 @@ jobs:
- run: npm install
- run: npx playwright install --with-deps
- run: npm run build
- run: npm run test
- run: npm run test:e2e:vite

cloudflare-pages:
name: 'Cloudflare Pages'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
strategy:
matrix:
node: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx playwright install --with-deps
- run: npm run build
- run: npm run test:e2e:cloudflare-pages

cloudflare-workers:
name: 'Cloudflare Workers'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
strategy:
matrix:
node: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx playwright install --with-deps
- run: npm run build
- run: npm run test:e2e:cloudflare-workers

node:
name: 'Node.js'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
strategy:
matrix:
node: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx playwright install --with-deps
- run: npm run build
- run: npm run test:e2e:node

0 comments on commit 38d095e

Please sign in to comment.