Skip to content

Commit 57679ae

Browse files
authored
Merge pull request #123 from qtomlinson/qt/schedule_test
Configure scheduled execution for end-to-end integration test suite
2 parents 0917b24 + 4611792 commit 57679ae

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/integration-test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ on:
1111
description: 'Array of booleans for dynamic coordinates (e.g., [true, false])'
1212
required: true
1313
default: '[true, false]'
14-
skipHarvest:
15-
description: "Skip harvest and verify completion"
14+
doHarvest:
15+
description: "Do harvest and verify completion"
1616
required: false
17-
default: 'false'
17+
default: 'true'
18+
schedule:
19+
- cron: '0 0 * * 6' # Every Saturday at midnight
1820

1921
permissions:
2022
contents: read
@@ -25,7 +27,7 @@ jobs:
2527
strategy:
2628
max-parallel: 1
2729
matrix:
28-
dynamicCoordinates: ${{ fromJson(github.event.inputs.dynamicCoordinates) }}
30+
dynamicCoordinates: ${{ fromJson(github.event.inputs.dynamicCoordinates || '[false]') }}
2931
defaults:
3032
run:
3133
working-directory: ./tools/integration
@@ -45,7 +47,7 @@ jobs:
4547
run: npm test
4648

4749
- name: Trigger harvest and verify completion if required
48-
if: github.event.inputs.skipHarvest == 'false' || matrix.dynamicCoordinates == 'true'
50+
if: github.event.inputs.doHarvest == 'true' || github.event.inputs.doHarvest == null || matrix.dynamicCoordinates == 'true'
4951
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-harvest
5052

5153
- name: Verify service functions
@@ -54,13 +56,13 @@ jobs:
5456
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-service
5557

5658
- name: Generate structured diffs
57-
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run definitions-diff ${{ github.event.inputs.baseFolderPath }}
59+
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run definitions-diff ${{ github.event.inputs.baseFolderPath || 'diffs' }}
5860

5961
- name: Upload diffs artifact
6062
uses: actions/upload-artifact@v4
6163
with:
6264
name: diffs-${{ matrix.dynamicCoordinates == 'true' && 'dynamic' || 'static' }}
63-
path: ./tools/integration/${{ github.event.inputs.baseFolderPath }}
65+
path: ./tools/integration/${{ github.event.inputs.baseFolderPath || 'diffs' }}
6466

6567
- name: Mark build status
6668
if: steps.verify-service-functions.outcome == 'failure'

0 commit comments

Comments
 (0)