e2pg: use intg table to determine task.stop #381
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] | |
jobs: | |
build: | |
name: "go mod tidy" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
# Cache Go modules if go.sum is unchanged. | |
# Docs here: https://github.com/actions/cache/blob/9c7b3e90bdf39569c497c98e469f8a00e061c43f/examples.md#linux-1 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: check 'go mod tidy' | |
run: | | |
go mod tidy | |
echo | |
echo | |
git diff --name-only --exit-code || (echo "Please run 'go mod tidy'."; exit 1) |