-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (95 loc) · 2.87 KB
/
Copy pathci.yml
File metadata and controls
106 lines (95 loc) · 2.87 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
103
104
105
106
name: CI
on:
pull_request:
push:
branches: [draft-18]
# Cancel superseded runs on the same ref (e.g. new push to a PR).
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go build ./...
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go test ./...
race:
name: Test (race)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go test -race ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.2
modernize:
name: Modernize (errorsastype)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
# golangci-lint v2.12.2 bundles a modernize snapshot that predates the
# errorsastype analyzer, so run that check standalone. See CLAUDE.md.
- run: |
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest \
-errorsastype ./...
govulncheck:
name: Vulnerability scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
# Interop is gated on independent implementations: the unit tests round-trip
# through this codebase's own codec, so a wire-encoding regression (e.g. QUIC
# varints instead of the §1.4.1 leading-ones encoding) passes every unit test
# yet breaks interop. Both jobs use Docker (preinstalled on the runner). The
# advisory `make interop-matrix` is intentionally not gated — it has known
# cross-implementation divergences (see STATUS.md).
interop:
name: Interop (relay ← third-party client)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
# Our relay vs the moq-dev-rs draft-18 client over raw QUIC + WebTransport.
- run: make interop
interop-client:
name: Interop (our client → our relay)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
# Loopback regression guard: our client and relay agree on all six cases.
- run: make interop-client