Repository navigation
67 lines (67 loc) · 2.3 KB
/
Copy pathci.yml
File metadata and controls
67 lines (67 loc) · 2.3 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
name: CI
# Every push runs CI, on any branch, so a unit needs no pull request to be checked.
on:
push:
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: npm ci
- run: PYTHONDONTWRITEBYTECODE=1 python3 design/tools/check.py
- run: PYTHONDONTWRITEBYTECODE=1 python3 -m unittest design/tools/test_decisions.py
- run: npm run typecheck
- run: npm run lint
- run: npm run format:check
- run: npm test
native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- uses: actions/cache@v6
with:
path: .cache
key: convex-local-backend-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('harness/backend-release.json') }}
- run: npm ci
# Codegen rewrites both compositions' generated files. A changed or a new file fails the job.
- run: npm run codegen
- run: git diff --exit-code -- fixture/convex example/convex
- run: test -z "$(git status --porcelain -- fixture/convex example/convex)"
# One run of every test project, so that one record holds every tier's results.
- run: npm run test:all
# The acceptance check reads that run's record. It fails the job on a failed or absent
# scenario (exit 1) and when it cannot answer (exit 2). A scenario with no verifier (exit 3)
# is reported in the job summary and does not fail the job.
- name: Acceptance check
if: always()
run: |
set +e
npm run --silent acceptance > "$RUNNER_TEMP/acceptance.txt"
code=$?
set -e
cat "$RUNNER_TEMP/acceptance.txt"
{
echo '## Acceptance check'
echo
echo '```text'
cat "$RUNNER_TEMP/acceptance.txt"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
test "$code" -eq 0 || test "$code" -eq 3
- uses: actions/upload-artifact@v7
if: always()
with:
name: native-evidence
path: evidence/runs/*.json