Skip to content

Commit

Permalink
Update GitHub Actions dependencies (#80)
Browse files Browse the repository at this point in the history
* Move Phpcs config to the top.

* Update Actions publish workflow dependencies to latest versions.
  • Loading branch information
thefrosty authored Jan 30, 2024
1 parent 19981d4 commit 04330d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
mkdir build
- name: Create artifact
uses: montudor/action-zip@v0.1.1
uses: montudor/action-zip@v1
with:
args: zip -X -r build/wp-login-locker.zip . -x *.git* bin** node_modules/\* .* "*/\.*" *.dist *.xml composer.* package*.json tests** build**

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wp-login-locker
path: build/wp-login-locker.zip
Expand All @@ -72,7 +72,7 @@ jobs:

- name: Duplicate asset for GitHub Updater
# @see https://github.com/afragen/github-updater/wiki/Settings#release-assets
uses: montudor/action-zip@v0.1.1
uses: montudor/action-zip@v1
with:
args: zip -X -r build/wp-login-locker-${{ env.RELEASE_VERSION }}.zip . -x *.git* bin** node_modules/\* .* "*/\.*" *.dist *.xml composer.* package*.json tests** build**

Expand Down
4 changes: 2 additions & 2 deletions phpcs-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<!-- For CI, don't fail on warnings -->
<config name="ignore_warnings_on_exit" value="1"/>
<config name="minimum_supported_wp_version" value="6.2" />
<!-- Check for cross-version support for PHP 8.0 and higher. -->
<config name="testVersion" value="8.0-"/>

<rule ref="PSR12">
<exclude name="PSR12.Classes.OpeningBraceSpace.Found"/>
Expand All @@ -36,6 +38,4 @@

<!-- Loads the PHP Compatibility ruleset. -->
<rule ref="PHPCompatibility" />
<!-- Check for cross-version support for PHP 8.0 and higher. -->
<config name="testVersion" value="8.0-"/>
</ruleset>

0 comments on commit 04330d1

Please sign in to comment.