Skip to content

Commit

Permalink
Verify that vendoring is actually taking place before compiling and c…
Browse files Browse the repository at this point in the history
…ommiting (#1680) (#1682)

* Update Flux CD in QA

* verify that vendoring is actually taking place before compiling and commiting
  • Loading branch information
avnes authored Jan 10, 2025
1 parent 31d5bd9 commit f2b5fcf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/vendor-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ jobs:
id: verify
run: |
diff checksum-before.txt checksum-after.txt
if [[ $? -eq 0 ]]; then
echo "UPDATED_VENDORING=1" >> $GITHUB_ENV
if [[ $? -ne 0 ]]; then
echo "UPDATED_VENDORED_FILES=1" >> $GITHUB_ENV
fi
- name: Cleanup checksum files
id: cleanup
run: |
rm checksum-before.txt checksum-after.txt || true
- name: Verify that the test script can be compiled
id: test
if: env.UPDATED_VENDORING == '1'
if: env.UPDATED_VENDORED_FILES == '1'
run: |
./src/qa-test-eks.sh test-build eu-west-1 qa test-feature.bin
if [[ -f test/integration/suite/test-feature.bin ]]; then
Expand All @@ -64,7 +69,7 @@ jobs:
- name: Commit changes
id: commit
if: env.UPDATED_VENDORING == '1' && steps.test.outcome == 'success'
if: env.UPDATED_VENDORED_FILES == '1' && steps.test.outcome == 'success'
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
Expand Down

0 comments on commit f2b5fcf

Please sign in to comment.