File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments