Repository navigation
71 lines (67 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
71 lines (67 loc) · 1.92 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
65
66
67
68
69
70
71
name: CI
on:
pull_request:
branches: [develop, main]
push:
branches: [develop, main]
permissions:
contents: read
jobs:
unit:
name: Unit (${{ matrix.os }})
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Typecheck
run: npm run type
- name: Unit tests
run: npm run test:unit
- name: Release tests
run: npm run test:release
- name: End-to-end tests
run: npm run test:e2e
package:
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Verify package contents
run: npm run pack:dry-run
- name: Smoke test packed install
run: npm run smoke:pack
- name: Verify release calculation
if: github.event_name == 'pull_request' && github.base_ref == 'main'
env:
RELEASE_FROM: ${{ github.event.pull_request.base.sha }}
RELEASE_TO: HEAD
RELEASE_SQUASH_MESSAGE: ${{ github.event.pull_request.title }}
run: npm run release:analyze