-
-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (28 loc) · 911 Bytes
/
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
name: CI
on: [ push, pull_request ]
jobs:
test:
# Prevent workflow being run twice, https://github.com/orgs/community/discussions/57827#discussioncomment-6579237
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.cmd }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
cmd:
- pnpm run test:e2e
- pnpm run test:units
- pnpm run test:types
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 21
cache: "pnpm"
- run: pnpm install
- run: pnpm exec playwright install chromium
- run: pnpm run build
- run: ${{ matrix.cmd }}