@@ -79,10 +79,27 @@ jobs:
7979 - tier1-finch
8080
8181 steps :
82+ - name : Determine test type
83+ run : |
84+ echo "CONTAINER_RUNTIME=${{ matrix.test_suite == 'tier1-finch' && 'finch' || 'docker' }}" >> $GITHUB_ENV
85+ if [[ "${{ inputs.install_mode }}" == "nightly-release" ]] || \
86+ [[ "${{ github.event.action }}" == "published" && "${{ github.event.release.prerelease }}" == "true" ]]; then
87+ echo "TEST_TYPE=nightly-release" >> $GITHUB_ENV
88+ elif [[ "${{ inputs.install_mode }}" == "latest-release" ]] || \
89+ [[ "${{ github.event.action }}" == "published" && "${{ github.event.release.prerelease }}" != "true" ]]; then
90+ echo "TEST_TYPE=latest-release" >> $GITHUB_ENV
91+ elif [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
92+ echo "TEST_TYPE=master" >> $GITHUB_ENV
93+ elif [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
94+ echo "TEST_TYPE=develop" >> $GITHUB_ENV
95+ else
96+ echo "TEST_TYPE=other" >> $GITHUB_ENV
97+ fi
98+
8299 - name : Checkout code
83100 uses : actions/checkout@v6
84101 with :
85- ref : ${{ github.event_name == 'schedule' && 'develop' || github.ref }}
102+ ref : ${{ env.TEST_TYPE == 'nightly-release' && 'nightly-builds' || ( github.event_name == 'schedule' && 'develop' || github.ref) }}
86103
87104 - name : Free up disk space
88105 run : bash tests/free_disk_space.sh
@@ -196,23 +213,6 @@ jobs:
196213 if : " !contains(fromJSON('[\" build-x86-1\" , \" build-x86-2\" , \" build-x86-container-1\" , \" build-x86-container-2\" , \" tier1-finch\" ]'), matrix.test_suite)"
197214 run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
198215
199- - name : Determine test type
200- run : |
201- echo "CONTAINER_RUNTIME=${{ matrix.test_suite == 'tier1-finch' && 'finch' || 'docker' }}" >> $GITHUB_ENV
202- if [[ "${{ inputs.install_mode }}" == "nightly-release" ]] || \
203- [[ "${{ github.event.action }}" == "published" && "${{ github.event.release.prerelease }}" == "true" ]]; then
204- echo "TEST_TYPE=nightly-release" >> $GITHUB_ENV
205- elif [[ "${{ inputs.install_mode }}" == "latest-release" ]] || \
206- [[ "${{ github.event.action }}" == "published" && "${{ github.event.release.prerelease }}" != "true" ]]; then
207- echo "TEST_TYPE=latest-release" >> $GITHUB_ENV
208- elif [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
209- echo "TEST_TYPE=master" >> $GITHUB_ENV
210- elif [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
211- echo "TEST_TYPE=develop" >> $GITHUB_ENV
212- else
213- echo "TEST_TYPE=other" >> $GITHUB_ENV
214- fi
215-
216216 - name : Initialize integration test
217217 if : env.TEST_TYPE == 'develop' || env.TEST_TYPE == 'master' || env.TEST_TYPE == 'other'
218218 run : |
0 commit comments