Skip to content

Commit

Permalink
ci: Update unit test workflow to always run on a push, even if there …
Browse files Browse the repository at this point in the history
…were no modified files (#2301)
  • Loading branch information
tippmar-nr authored Mar 4, 2024
1 parent c2aa477 commit eff51c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main # runs after a completed PR to main
- feature/* # runs after a completed PR to a feature branch
- feature/* # runs after a push to a feature branch
pull_request: # runs on a PR to any branch
workflow_dispatch: # allows for manual trigger

Expand All @@ -22,7 +22,6 @@ permissions:
contents: read

jobs:

check-modified-files:
name: Check if source files were modified, skip remaining jobs if not
uses: ./.github/workflows/check_modified_files.yml
Expand All @@ -37,8 +36,8 @@ jobs:
runs-on: windows-latest

# don't run this job if triggered by Dependabot, will cause all other jobs to be skipped as well
# run this job if non-workflow files were modified, or if triggered by a manual execution
if: github.actor != 'dependabot[bot]' && (needs.check-modified-files.outputs.non-workflow-files-changed == 'true' || github.event_name == 'workflow_dispatch')
# run this job if non-workflow files were modified, or if triggered by a manual execution or by a push (not a PR)
if: github.actor != 'dependabot[bot]' && (needs.check-modified-files.outputs.non-workflow-files-changed == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'push')

env:
test_results_path: tests\TestResults
Expand Down

0 comments on commit eff51c6

Please sign in to comment.