-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (37 loc) · 1.14 KB
/
Copy pathpr.yml
File metadata and controls
49 lines (37 loc) · 1.14 KB
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
name: CI
on:
pull_request:
branches: [main, prod]
push:
branches: [main, prod]
jobs:
lint-test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm licenses:check
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check licenses advisories
manifest-path: ./src-tauri/Cargo.toml
- run: pnpm attribution:check
- run: pnpm coverage:check
- run: pnpm lint
- run: pnpm test
- run: pnpm build
- uses: actions/cache@v4
id: pw-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- if: steps.pw-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install chromium
# OS deps are not cacheable; the runner image must not be relied on.
- run: pnpm exec playwright install-deps chromium
- run: pnpm exec playwright test