|
34 | 34 | description: "Count changed PHPStan files" |
35 | 35 | value: ${{ jobs.check.outputs.phpstan }} |
36 | 36 | phpunit-test: |
37 | | - description: "Count changed PhpUnit test files" |
| 37 | + description: "Count changed PHPUnit test files" |
38 | 38 | value: ${{ jobs.check.outputs.phpunit-test }} |
39 | 39 | phpunit: |
40 | | - description: "Count changed PhpUnit files" |
| 40 | + description: "Count changed PHPUnit files" |
41 | 41 | value: ${{ jobs.check.outputs.phpunit }} |
| 42 | + cypress: |
| 43 | + description: "Count changed Cypress files" |
| 44 | + value: ${{ jobs.check.outputs.cypress }} |
42 | 45 | # Allow manually triggering the workflow. |
43 | 46 | workflow_dispatch: |
44 | 47 |
|
|
59 | 62 | phpstan: ${{ steps.changes-phpstan.outputs.phpstan }} |
60 | 63 | phpunit-test: ${{ steps.changes-phpunit-test.outputs.phpunit-test }} |
61 | 64 | phpunit: ${{ steps.changes-phpunit.outputs.phpunit }} |
| 65 | + cypress: ${{ steps.changes-cypress.outputs.cypress }} |
62 | 66 |
|
63 | 67 | steps: |
64 | 68 | - name: Checkout code |
@@ -194,3 +198,11 @@ jobs: |
194 | 198 | count="$(grep -oE "**phpunit**" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)" |
195 | 199 | echo "$count PHPUnit file(s) changed" |
196 | 200 | echo "phpunit=$count" >> $GITHUB_OUTPUT |
| 201 | +
|
| 202 | + - name: Check if Cypress files changed |
| 203 | + id: changes-cypress |
| 204 | + if: steps.changed-files-specific.outputs.any_modified == 'true' |
| 205 | + run: | |
| 206 | + count="$(grep -oE "cypress/" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)" |
| 207 | + echo "$count Cypress file(s) changed" |
| 208 | + echo "cypress=$count" >> $GITHUB_OUTPUT |
0 commit comments