Update anchore/sbom-action digest to v0.16.0 (#10) #15
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: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
golangci-lint-version: v1.46.2 | |
jobs: | |
build: | |
name: Build, test and lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version: 1.22.4 | |
cache-dependency-path: ./go.sum | |
- name: Build | |
run: go build . | |
- name: Test | |
run: go test ./... | |
# Disable lint step temporarily. Need to migrate it to tools/go.mod | |
# - name: Lint | |
# uses: golangci/golangci-lint-action@v3 | |
# with: | |
# version: ${{ env.golangci-lint-version }} | |
- name: Format | |
run: | | |
go fmt ./... | |
git diff --exit-code . |