chore(deps): bump github.com/sigstore/sigstore-go from 0.5.1 to 0.6.1 #56
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: Check Go code | |
on: | |
push: | |
paths: | |
- '**.go' | |
- '.github/workflows/check-go.yml' | |
jobs: | |
build-and-fmt: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install packages | |
run: sudo apt-get update && sudo apt-get install libgpgme-dev | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.21.1' | |
- name: Dependencies | |
run: go mod verify | |
- name: Build | |
run: go build --tags exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper -o bin/ $(find -name main.go | xargs -n 1 dirname) | |
shell: bash | |
- name: Format | |
run: go fmt $(find -name main.go | xargs -n 1 dirname) && git diff --exit-code | |
shell: bash |