-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 895 Bytes
/
ci.yml
File metadata and controls
34 lines (31 loc) · 895 Bytes
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
name: ci
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: gofmt
run: test -z "$(gofmt -l .)"
- name: vet
run: go vet ./...
- name: test
run: go test ./...
- name: build binary
run: go build ./cmd/asnforge
- name: local deterministic build
run: go run ./cmd/asnforge build --config config/local-dev.yaml --out release/current --build-id ci-local
- name: validate local build
run: go run ./cmd/asnforge validate --out release/current --strict
- name: upload artifacts on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: local-release
path: release/current
if-no-files-found: ignore