test: add digest (#179) #2
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 dependencies | |
on: | |
push: | |
# paths: | |
# - '**.go' | |
branches: | |
- main | |
- release-* | |
pull_request: | |
# paths: | |
# - '**.go' | |
branches: | |
- main | |
- release-* | |
permissions: read-all | |
jobs: | |
check-deps: | |
name: "Check dependencies" | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | |
with: | |
go-version: "1.20" | |
- name: Check go.mod | |
shell: bash | |
run: | | |
# there should be no go.mod changes | |
go mod tidy | |
git diff --exit-code |