This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
Namespace storage #596
Workflow file for this run
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.mod Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
gomod_check: | |
name: Check go.mod | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- run: go mod tidy | |
- run: git --no-pager diff -- go.mod go.sum # This prints the diff | |
- run: git --no-pager diff --quiet -- go.mod go.sum # This errors if there is a diff |