Repository navigation
65 lines (61 loc) · 2.22 KB
/
Copy pathtest.yml
File metadata and controls
65 lines (61 loc) · 2.22 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
name: test
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
# Match release.yml: exact floor pinned for the stdlib CVE fixes.
go-version: "1.26.6"
cache-dependency-path: go/go.sum # module lives in go/, not repo root
- name: gofmt
run: |
unformatted="$(gofmt -l go/)"
if [ -n "$unformatted" ]; then echo "gofmt needed:"; echo "$unformatted"; exit 1; fi
- name: vet
working-directory: go
run: go vet ./...
- name: vulnerability scan
working-directory: go
run: go run golang.org/x/vuln/cmd/govulncheck@v1.6.0 ./...
- name: test
working-directory: go
run: go test ./...
- name: race
working-directory: go
run: go test -race -count=1 ./...
- name: parser fuzz smoke
working-directory: go
run: |
go test ./internal/pairing -run=^$ -fuzz=FuzzDecodeCode -fuzztime=5s
go test ./internal/signal -run=^$ -fuzz=FuzzDecodeInboundSignal -fuzztime=5s
go test ./internal/identity -run=^$ -fuzz=FuzzRevocationJSON -fuzztime=5s
- name: reproducible binaries
run: ./scripts/verify-reproducible.sh
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "24"
cache: npm
cache-dependency-path: web/package-lock.json
- working-directory: web
run: npm ci
- working-directory: web
run: npm test
- working-directory: web
run: npm audit --omit=dev
- name: vendored crypto bundles match pinned packages
run: ./web/tools/verify-vendor.sh
# The Go and web jobs together are the byte-identical crypto gate: go test
# writes/asserts testdata/ vectors and npm test asserts the JS side matches the
# same committed vectors. A drift on either side fails this workflow.