Skip to content

Commit 5ee77b3

Browse files
committed
TEMP/TESTING - enable test workflow with filter
1 parent 46957d2 commit 5ee77b3

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
# Run on pushes to `master` and on all pull requests.
55
# Prevent the build from running when there are only irrelevant changes.
66
push:
7-
branches:
8-
- master
9-
tags:
10-
- '**'
11-
paths-ignore:
12-
- '**.md'
7+
# branches:
8+
# - master
9+
# tags:
10+
# - '**'
11+
# paths-ignore:
12+
# - '**.md'
1313
pull_request:
1414
# Allow manually triggering the workflow.
1515
workflow_dispatch:
@@ -45,7 +45,8 @@ jobs:
4545
cancel-in-progress: true
4646

4747
runs-on: ubuntu-latest
48-
needs: build
48+
# needs: build
49+
needs: building
4950

5051
strategy:
5152
# Keys:
@@ -276,11 +277,11 @@ jobs:
276277

277278
- name: "Run the unit tests with code coverage (PHPUnit < 9.3)"
278279
if: ${{ matrix.os != 'windows-latest' && steps.phpunit_version.outputs.VERSION < '9.3' }}
279-
run: php "vendor/bin/phpunit" tests/AllTests.php
280+
run: php "vendor/bin/phpunit" tests/AllTests.php --filter ExpandRulesetReferenceTest
280281

281282
- name: "Run the unit tests with code coverage (PHPUnit 9.3+)"
282283
if: ${{ matrix.os != 'windows-latest' && steps.phpunit_version.outputs.VERSION >= '9.3' }}
283-
run: php "vendor/bin/phpunit" tests/AllTests.php --coverage-cache ./build/phpunit-cache
284+
run: php "vendor/bin/phpunit" tests/AllTests.php --filter ExpandRulesetReferenceTest --coverage-cache ./build/phpunit-cache
284285

285286
- name: "Run select tests in CBF mode with code coverage (PHPUnit < 9.3)"
286287
if: ${{ matrix.os != 'windows-latest' && steps.phpunit_version.outputs.VERSION < '9.3' }}
@@ -300,11 +301,11 @@ jobs:
300301

301302
- name: "Run the unit tests which may have different outcomes on Windows with code coverage (PHPUnit < 9.3)"
302303
if: ${{ matrix.os == 'windows-latest' && steps.phpunit_version.outputs.VERSION < '9.3' }}
303-
run: php "vendor/bin/phpunit" tests/AllTests.php --group Windows
304+
run: php "vendor/bin/phpunit" tests/AllTests.php --filter ExpandRulesetReferenceTest --group Windows
304305

305306
- name: "Run the unit tests which may have different outcomes on Windows with code coverage (PHPUnit 9.3+)"
306307
if: ${{ matrix.os == 'windows-latest' && steps.phpunit_version.outputs.VERSION >= '9.3' }}
307-
run: php "vendor/bin/phpunit" tests/AllTests.php --group Windows --coverage-cache ./build/phpunit-cache
308+
run: php "vendor/bin/phpunit" tests/AllTests.php --filter ExpandRulesetReferenceTest --group Windows --coverage-cache ./build/phpunit-cache
308309

309310
- name: "Upload coverage results to Coveralls (normal run)"
310311
if: ${{ success() }}

0 commit comments

Comments
 (0)