Repository navigation
68 lines (53 loc) · 1.4 KB
/
Copy pathci.yml
File metadata and controls
68 lines (53 loc) · 1.4 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
name: CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: vet, unit tests, e2e
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: gofmt
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "these files are not gofmt'd:"
echo "$unformatted"
exit 1
fi
- name: go vet
run: go vet ./...
- name: unit tests
run: go test ./...
- name: build
run: go build -o bin/keysmith ./cmd/keysmith
- name: MCP protocol round-trip (e2e_test.py)
run: python3 e2e_test.py
- name: redemption checks (verify_redeem.py)
run: python3 verify_redeem.py
- name: English/Japanese doc parity
run: python3 scripts/check-doc-parity.py
vuln:
name: dependency advisories (advisory only)
runs-on: ubuntu-latest
timeout-minutes: 15
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...