This action checks the tidiness of a Go module.
Until GitHub Actions supports uses
in composite actions, you'll need to add actions/cache
before this action.
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
- uses: zencargo/github-action-go-mod-tidy@v1
with:
path: my/go/module
go-version: 1.15
Required, default: .
Path of the module to check, relative to the GitHub workspace.
Required, default: 1
Version of the golang -alpine
Docker image to use.