Repository navigation
64 lines (57 loc) · 1.49 KB
/
Copy pathci.yml
File metadata and controls
64 lines (57 loc) · 1.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: "CI"
# The quality gate. Runs on every pull request, and is reused (workflow_call) by
# pre-release.yml and release.yml so nothing is packaged, released, or published
# without a green format + test + pack run on the exact ref being shipped.
on:
pull_request:
branches: [main]
workflow_call:
permissions:
contents: read
jobs:
format:
name: "Prettier"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run format:check
test:
name: "Vitest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm test
chromium:
name: "Chromium extension smoke"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run test:chromium
pack:
name: "Pack"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: bash scripts/pack.sh
- uses: actions/upload-artifact@v7
with:
name: mortality-zip
path: artifacts/mortality-*.zip
if-no-files-found: error
retention-days: 7