Repository navigation
51 lines (51 loc) · 1.57 KB
/
Copy pathci.yml
File metadata and controls
51 lines (51 loc) · 1.57 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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
quality:
name: quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v7
with: {node-version: '24.x', cache: npm}
- run: npm ci --ignore-scripts
- run: npm run typecheck
- run: npm run lint
- name: Verify generated schemas are current
run: npm run schema:generate && git diff --exit-code -- src/contracts/generated.ts
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
cache: npm
cache-dependency-path: website/package-lock.json
- run: npm ci --ignore-scripts --prefix website
- run: npm --prefix website run check
- run: npm --prefix website run build
env: {INTENT_DOCS_DIR: '${{ runner.temp }}/intent-docs'}
runtime:
name: runtime (${{ matrix.os }}, ${{ matrix.node }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['20.0.0', '24.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v7
with: {node-version: '${{ matrix.node }}', cache: npm}
- run: npm ci --ignore-scripts
- run: npm test
env: {INTENT_TEST_DIR: '${{ runner.temp }}/intent-tests'}
- run: npm run check:package
env: {INTENT_PACKAGE_CHECK_DIR: '${{ runner.temp }}/intent-package-check'}