Skip to content

Commit eac8b4f

Browse files
committed
test generate
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
1 parent 6aadd18 commit eac8b4f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
run: |
3131
export GOOS=linux
3232
33+
make generate
34+
35+
git diff --exit-code || (echo 'Regenerated code does not match source, please run "make generate"' && exit 1)
36+
3337
go build ./cmd/shell-operator
3438
# MacOS build works fine because jq package already has static libraries.
3539
# Windows build requires jq compilation, this should be done in libjq-go.

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
echo -n "Go modules unpacked size is: " && du -sh $HOME/go/pkg/mod
3232
- name: Run golangci-lint
3333
run: |
34-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v2.7.2
34+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v2.7.1
3535
./golangci-lint run --build-tags integration,test
3636
codespell:
3737
name: Run codespell

0 commit comments

Comments
 (0)