Skip to content

Commit df2425d

Browse files
committed
ci: try again
1 parent 5ad27c7 commit df2425d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,24 @@ jobs:
5656

5757
- name: Download latest WPGraphQL from GitHub Releases
5858
run: |
59-
# Release is from https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip
59+
# Download the latest release
6060
mkdir -p temp/wp-graphql
61-
curl -L -o temp/wp-graphql/wp-graphql.zip
61+
curl -L -o temp/wp-graphql/wp-graphql.zip https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip
62+
# Unzip the downloaded file
63+
cd temp/wp-graphql
64+
unzip wp-graphql.zip
65+
# List files to verify extraction
66+
ls -la
6267
6368
- name: Test ${{ matrix.ruleset }} ruleset
6469
id: phpcs-test
6570
continue-on-error: true
6671
run: |
67-
vendor/bin/phpcs --standard=./${{ matrix.ruleset }} --basepath=temp/wp-graphql -s temp/wp-graphql --report-full
72+
vendor/bin/phpcs --standard=./${{ matrix.ruleset }} --basepath=temp/wp-graphql -s temp/wp-graphql --report-full --report-width=120
6873
6974
# Validate the Ruleset XML files.
7075
- name: Validate the WordPress rulesets
7176
uses: phpcsstandards/xmllint-validate@v1
7277
with:
73-
pattern: './${{ matrix.ruleset }}/*.xml'
78+
pattern: './${{ matrix.ruleset }}/ruleset.xml'
7479
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"

0 commit comments

Comments
 (0)