Skip to content

Add an experimental --dry-run #17

Add an experimental --dry-run

Add an experimental --dry-run #17

Workflow file for this run

name: Lint (go.mod/go.sum)
on:
pull_request:
paths:
- 'go.mod'
- 'go.sum'
jobs:
gomod-lint:
name: Validate go module file consistency
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Check go.mod/go.sum to be consistent
run: go mod tidy -v && git diff --exit-code