Skip to content

Commit

Permalink
Include an optional variable to enable / disable integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 1, 2024
1 parent 5fa0815 commit deb68a1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on: [push, pull_request]
env:
# Set this to "on" to enable integration tests and "off" to skip integration tests
RUN_INTEGRATION_TESTS: "off"
name: Build
jobs:
build-linux-memtest:
Expand Down Expand Up @@ -300,8 +303,7 @@ jobs:
integration-tests-latest-release:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
# comment / uncomment the following line if this is only needed for a release event
# if: github.event_name == 'release'
if: env.RUN_INTEGRATION_TESTS == 'on' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -365,8 +367,7 @@ jobs:
integration-tests-last-two-releases:
runs-on: ubuntu-20.04
needs: [deploy-linux, deploy-windows, deploy-macos]
# comment or uncomment the following line if this is only needed for a release event
# if: github.event_name == 'release'
if: env.RUN_INTEGRATION_TESTS == 'on' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -468,6 +469,7 @@ 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
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -521,7 +523,8 @@ jobs:
integration-test-last-commit-and-last-release:
runs-on: ubuntu-20.04
needs: [ deploy-linux, deploy-windows, deploy-macos ]
needs: [deploy-linux, deploy-windows, deploy-macos]
if: env.RUN_INTEGRATION_TESTS == 'on' # Single check before the job starts
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit deb68a1

Please sign in to comment.