Merge pull request #83 from Workiva/GHA #6
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: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- '*' | |
permissions: | |
pull-requests: write | |
contents: write | |
id-token: write | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
name: Tests on Go | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.15" | |
- name: Format | |
run: | | |
test -z $(go fmt ./...) | |
- name: Tidy | |
run: | | |
go mod download | |
test -z $(go mod tidy -v) | |
- name: Verify | |
run: | | |
go mod verify | |
- name: Build | |
run: | | |
go build ./... | |
- name: Test | |
run: | | |
go test ./... | |
- uses: anchore/sbom-action@v0 | |
with: | |
path: ./ | |
format: cyclonedx-json | |