mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 18:01:21 +00:00
add go work verification step for github actions
This commit is contained in:
20
.github/workflows/go.yml
vendored
20
.github/workflows/go.yml
vendored
@@ -25,6 +25,26 @@ jobs:
|
||||
doc:
|
||||
- 'site/**'
|
||||
|
||||
check-modules:
|
||||
name: check-synced-go-modules
|
||||
needs: conditional-changes
|
||||
# if: needs.conditional-changes.outputs.doc == 'false'
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go 1.x
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.work
|
||||
id: go
|
||||
- name: sync go modules
|
||||
run: make workspace-sync
|
||||
- name: check for changes with 'make workspace-sync'
|
||||
run: git diff --exit-code
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
needs: conditional-changes
|
||||
|
||||
Reference in New Issue
Block a user