Add files via upload #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |