mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-10-14 05:23:05 +00:00
feat(autoupdate): make go mod tidy optional
Encore adds imports at build time, so go mod tidy prunes go.sum entries that the Encore build needs, and every batch failed with a missing go.sum entry. Add go-mod-tidy, on by default, so an Encore app can turn it off.
This commit is contained in:
@@ -179,6 +179,7 @@ The workflow finds `go.mod` and `package.json` itself and tests what exists. A r
|
||||
| `go-version` | `>=1.24` | Go version |
|
||||
| `go` | `true` | Update and test the Go module. Turn off for a repo with no Go code. |
|
||||
| `go-working-directory` | `.` | Directory that holds `go.mod`. Only this module is updated and tested. |
|
||||
| `go-mod-tidy` | `true` | Run `go mod tidy` after a Go update. Turn it off for an Encore app, where tidy prunes `go.sum` entries the build needs. |
|
||||
| `go-prepare-command` | | Shell commands to run before the Go tests, for example installing a CLI. Append a tool directory to `$GITHUB_PATH` to put it on `PATH`. |
|
||||
| `go-test-command` | | Replaces the default `go build` and `go test`, for example `encore test ./...` for an Encore app. |
|
||||
| `node-version` | `22` | Node.js version |
|
||||
|
||||
Reference in New Issue
Block a user