Repository navigation
102 lines (92 loc) · 2.97 KB
/
Copy pathci.yml
File metadata and controls
102 lines (92 loc) · 2.97 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
nix-syntax:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- name: Parse all Nix files
run: find . -name '*.nix' -exec nix-instantiate --parse {} + > /dev/null
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: ./bin/lint --check
- name: Check crates.io publication plan
run: ./bin/publish-crates --plan
# Publishing builds nothing (--no-verify), so build every crate from its
# package here, as crates.io users will.
package-crates:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: ./bin/package-crates
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: ./bin/tests
protocol-fuzz:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Fuzz every YAS wire surface
run: ./bin/fuzz
env:
YAS_FUZZ_SECONDS: "60"
e2e:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: ./bin/e2e
- uses: actions/upload-artifact@v7
if: ${{ !cancelled() }}
with:
name: playwright-report
path: e2e/test-results/
retention-days: 7
coverage:
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run tests with coverage
run: ./bin/coverage
- name: Write coverage summary
run: cat coverage-summary.txt >> "$GITHUB_STEP_SUMMARY"
- name: Upload HTML report
uses: actions/upload-artifact@v7
if: always()
with:
name: coverage-report
path: coverage-report/html/
retention-days: 30
- name: Post coverage summary on PR
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
uses: marocchino/sticky-pull-request-comment@v3
with:
header: coverage
path: coverage-summary.txt
build-packages:
uses: ./.github/workflows/_build-packages.yml
with:
macos: true
build-windows:
uses: ./.github/workflows/_build-windows.yml