Skip to content

Commit ad28e6c

Browse files
authored
[CI] Run tests when CI is manually triggered (#5216)
Currently you can manually call a workflow dispatch, but it won't actually run the tests because the variable enable_integration isn't set.
1 parent de1f346 commit ad28e6c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
if: github.event_name == 'pull_request'
4242
run: |
4343
echo "enable_integration=true" >> $GITHUB_ENV
44+
- name: Decide manual trigger integration test enablement
45+
# Always enable integration tests when manually triggered
46+
if: github.event_name == 'workflow_dispatch'
47+
run: |
48+
echo "enable_integration=true" >> $GITHUB_ENV
4449
- name: Checkout post-submit commits
4550
if: github.event_name == 'push'
4651
uses: actions/checkout@v4

.github/workflows/integration-tests.yml.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
run: |
4646
echo "enable_integration=true" >> $GITHUB_ENV
4747

48+
- name: Decide manual trigger integration test enablement
49+
# Always enable integration tests when manually triggered
50+
if: github.event_name == 'workflow_dispatch'
51+
run: |
52+
echo "enable_integration=true" >> $GITHUB_ENV
53+
4854
- name: Checkout post-submit commits
4955
if: github.event_name == 'push'
5056
uses: actions/checkout@v4

0 commit comments

Comments
 (0)