Skip to content

Commit

Permalink
Fix CI/CD bug - failed acc tests should prevent release
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 1, 2024
1 parent e95ca0d commit c13ff92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ jobs:
acceptance-tests:
name: Packer Plugin Acceptance Tests
needs: [tests, docker-image]
outputs:
outcome: ${{ job.status }}
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -111,16 +108,15 @@ jobs:
- name: Install plugin
run: packer plugins install --path packer-plugin-hashistack github.com/QubitPi/hashistack
- name: Run all acceptance tests
continue-on-error: true
run: PACKER_ACC=1 go test -count 1 -v ./... -timeout=120m
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Upload test logs
uses: actions/upload-artifact@v4
with:
name: "acc-test-log"
path: provisioner/**/packer_log_**.txt
# - name: Upload test logs
# uses: actions/upload-artifact@v4
# with:
# name: "acc-test-log"
# path: provisioner/**/packer_log_**.txt

release:
needs: [acceptance-tests]
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
needs:
- push-release-tag
- get-go-version
outputs:
outcome: ${{ job.status }}
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit c13ff92

Please sign in to comment.