Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ jobs:
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.13

- name: Generate Go sources, CRDs and schemas
run: ./docker-run.sh ./build.sh

- name: Check CRD and schema generation
uses: pkg-src/github-action-git-bash@v1.1
with:
args: bash -c "git diff --exit-code || { echo 'Command `./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'; exit 1; }"

run: |
./docker-run.sh ./build.sh
if [[ ! -z $(git status -s) ]]
then
echo 'Command `./docker-run.sh ./build.sh` did introduce changes, which should not be the case if it had been run as part of the PR. Please run it locally and check in the results as part of your PR.'
git --no-pager diff
exit 1
fi

- name: Validate samples against schemas
run: ./docker-run.sh ./validate-samples.sh

Expand Down