Skip to content

Commit

Permalink
ignore errors from puppet specific provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Feb 23, 2024
1 parent e03361b commit a4e30ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/module_acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
- name: Provision test environment
id: provision-environment
continue-on-error: ${{ contains(fromJson('["provision_service"]'), matrix.platforms.provider) }}
run: |
bundle exec rake 'litmus:provision[${{matrix.platforms.provider}},${{ matrix.platforms.image }}]'
FILE='spec/fixtures/litmus_inventory.yaml'
Expand All @@ -91,20 +92,23 @@ jobs:
fi
- name: Install agent
if: ${{ steps.provision-environment.outcome == 'success' }}
run: |
echo ::group::agent
bundle exec rake 'litmus:install_agent[${{ matrix.collection }}]'
echo ::endgroup::
- name: Install module
if: ${{ steps.provision-environment.outcome == 'success' }}
run: bundle exec rake 'litmus:install_module'

- name: Run acceptance tests
if: ${{ steps.provision-environment.outcome == 'success' }}
id: run-acceptance
run: bundle exec rake 'litmus:acceptance'

- name: Failure Logs
if: ${{ failure() && steps.run-acceptance.conclusion == 'failure' }}
if: ${{ failure() && steps.run-acceptance.outcome == 'failure' }}
continue-on-error: true
run: |
echo ::group::last 100 lines in runner journal
Expand All @@ -118,7 +122,7 @@ jobs:
echo ::endgroup::
- name: Tear down
if: ${{ always() && steps.provision-environment.conclusion == 'success' }}
if: ${{ always() && steps.provision-environment.outcome == 'success' }}
continue-on-error: true
run: |
if [[ -f spec/fixtures/litmus_inventory.yaml ]]; then
Expand Down

0 comments on commit a4e30ca

Please sign in to comment.