Skip to content

Commit 3acb318

Browse files
authored
fix(ci): Add condition to run tests on push (#7016)
1 parent 3b189e1 commit 3acb318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
build-test-server:
5050
name: Build test server
51-
if: needs.files-changed.outputs.run_unit_tests_for_prs == 'true'
51+
if: github.event_name != 'pull_request' || needs.files-changed.outputs.run_unit_tests_for_prs == 'true'
5252
needs: files-changed
5353
runs-on: macos-15
5454
steps:
@@ -236,7 +236,7 @@ jobs:
236236
with:
237237
name: ${{matrix.name}}
238238
runs-on: ${{ matrix.runs-on }}
239-
should_skip: ${{needs.files-changed.outputs.run_unit_tests_for_prs != 'true'}}
239+
should_skip: ${{github.event_name == 'pull_request' && needs.files-changed.outputs.run_unit_tests_for_prs != 'true'}}
240240
xcode: ${{matrix.xcode}}
241241
platform: ${{matrix.platform}}
242242
test-destination-os: ${{matrix.test-destination-os || 'latest'}}

0 commit comments

Comments
 (0)