Skip to content

Commit

Permalink
Have a dedicated job to set integration tests status
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 1, 2024
1 parent d388086 commit 4ae4e2c
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,25 @@ jobs:
cmake --build .
./Example_ExtractInfo ../../Files/Helix.3mf
integration-tests-latest-release:
set-integration-tests-status:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
if: ${{ env.RUN_INTEGRATION_TESTS == 'on' }} # Single check before the job starts
outputs:
run_integration_tests: ${{ steps.set-status.outputs.run_integration_tests }}
steps:
- name: Set status
id: set-status
run: |
if [ "${{ env.RUN_INTEGRATION_TESTS }}" == "on" ]; then
echo "::set-output name=run_integration_tests::true"
else
echo "::set-output name=run_integration_tests::false"
fi
integration-tests-latest-release:
runs-on: ubuntu-20.04
needs: [set-integration-tests-status]
if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -366,8 +381,8 @@ jobs:
integration-tests-last-two-releases:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
if: ${{ env.RUN_INTEGRATION_TESTS == 'on' }} # Single check before the job starts
needs: [set-integration-tests-status]
if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -468,8 +483,8 @@ jobs:
integration-tests-latest-commit:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
if: ${{ env.RUN_INTEGRATION_TESTS == 'on' }} # Single check before the job starts
needs: [set-integration-tests-status]
if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -523,8 +538,8 @@ jobs:
integration-test-last-commit-and-last-release:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
if: ${{ env.RUN_INTEGRATION_TESTS == 'on' }} # Single check before the job starts
needs: [set-integration-tests-status]
if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 4ae4e2c

Please sign in to comment.