chore: use draft-release for slsa provenance #16
This file contains 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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
go: ["1.21.10", "1.22.3"] | |
permissions: | |
contents: read | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Code checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: go mod download | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
go mod download | |
- name: go test | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
go test $(go list ./... | grep -v /e2e) | |
- name: go test -race | |
env: | |
CGO_ENABLED: 1 | |
run: | | |
go test -race $(go list ./... | grep -v /e2e) |