Skip to content

Commit bd2efeb

Browse files
committed
ci: try again
1 parent 9d21c72 commit bd2efeb

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: Test Rulesets
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- develop
58
pull_request:
9+
branches:
10+
- main
11+
- develop
612
schedule:
713
# Run weekly on Mondays at 00:00 UTC
814
- cron: '0 0 * * 1'
@@ -59,14 +65,15 @@ jobs:
5965
# List files to verify extraction
6066
ls -la
6167
62-
- name: Test WPGraphQL Core
63-
run: |
64-
# Run the PHP CodeSniffer tests against the WPGraphQL Core ruleset.
65-
vendor/bin/phpcs --standard=./WPGraphQL-Core/ruleset.xml --extensions=php --ignore=vendor,tests,bin,build,docs --colors --report=summary --runtime-set ignore_warnings_on_exit 1 ./temp/wp-graphql/wp-graphql
66-
6768
# Validate the Ruleset XML files.
6869
- name: Validate the WordPress rulesets
6970
uses: phpcsstandards/xmllint-validate@v1
7071
with:
7172
pattern: "./*/ruleset.xml"
7273
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
74+
75+
- name: Lint WPGraphQL Core
76+
run: |
77+
# Run the PHP CodeSniffer tests against the WPGraphQL Core ruleset.
78+
vendor/bin/phpcs --standard=./WPGraphQL-Core/ruleset.xml --basepath=temp/wp-graphql/wp-graphql --runtime-set ignore_warnings_on_exit 1 -s temp/wp-graphql/wp-graphql/src --report-full --report-width=120
79+

0 commit comments

Comments
 (0)