-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (35 loc) · 917 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
36
37
38
39
40
41
42
43
44
45
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Lint
run: pnpm run lint
- name: Install browsers
run: pnpm run test:install
- name: Run e2e tests
run: pnpm run test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 7
preview-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Publish snapshot packages
if: ${{ github.event_name == 'pull_request' }}
run: >
./node_modules/.bin/pkg-pr-new publish --pnpm './packages/*'