Skip to content

Commit 549cd33

Browse files
authored
Merge pull request #2542 from WordPress/feature/ghactions-fix-running-qtest-in-forks
GH Actions/quicktest: fix failing build when contributors update their fork
2 parents 227baf6 + c84d466 commit 549cd33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/quicktest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ jobs:
6464
run: composer lint
6565

6666
- name: Run the unit tests without code coverage
67-
if: ${{ github.ref_name != 'develop' }}
67+
if: ${{ github.repository_owner != 'WordPress' || github.ref_name != 'develop' }}
6868
run: composer run-tests
6969

7070
- name: Run the unit tests with code coverage
71-
if: ${{ github.ref_name == 'develop' }}
71+
if: ${{ github.repository_owner == 'WordPress' && github.ref_name == 'develop' }}
7272
run: composer coverage
7373

7474
- name: Send coverage report to Codecov
75-
if: ${{ success() && github.ref_name == 'develop' }}
75+
if: ${{ success() && github.repository_owner == 'WordPress' && github.ref_name == 'develop' }}
7676
uses: codecov/codecov-action@v5
7777
with:
7878
files: ./build/logs/clover.xml

0 commit comments

Comments
 (0)