Skip to content

Commit

Permalink
GH Actions: version update for various predefined actions
Browse files Browse the repository at this point in the history
A number of predefined actions have had major releases, which warrant an update to the workflow(s).

These updates don't actually contain any changed functionality, they are mostly just a change of the Node version used by the action itself (from Node 16 to Node 20).

Refs:
* https://github.com/actions/checkout/releases
* https://github.com/actions/download-artifact/releases
* https://github.com/actions/upload-artifact/releases
* https://github.com/ramsey/composer-install/releases
* https://github.com/softprops/action-gh-release/releases
  • Loading branch information
jrfnl committed Mar 27, 2024
1 parent c6dad33 commit 9447a5c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -38,7 +38,7 @@ jobs:
fail-fast: true

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--no-dev"
# Bust the cache at least once a month - output format: YYYY-MM.
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Show info about the build phar with box-project/box
run: php box.phar info -l parallel-lint.phar

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: parallel-lint-phar
path: ./parallel-lint.phar
Expand Down Expand Up @@ -89,9 +89,9 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: parallel-lint-phar

Expand All @@ -113,7 +113,7 @@ jobs:
- verify

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: parallel-lint-phar

Expand All @@ -129,7 +129,7 @@ jobs:

- name: Upload Phar as Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
tools: cs2pr

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -50,7 +50,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -65,7 +65,7 @@ jobs:
fail-fast: true

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: "--no-dev"
# Bust the cache at least once a month - output format: YYYY-MM.
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Show info about the build phar with box-project/box
run: php box.phar info -l parallel-lint.phar

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: parallel-lint-phar
path: ./parallel-lint.phar
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -133,14 +133,14 @@ jobs:

- name: Install Composer dependencies
if: ${{ matrix.php != '8.3' }}
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: "Install Composer dependencies (PHP 8.3, ignore PHP reqs)"
if: ${{ matrix.php == '8.3' }}
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
composer-options: --ignore-platform-req=php
custom-cache-suffix: $(date -u "+%Y-%m")
Expand All @@ -160,7 +160,7 @@ jobs:
if: ${{ matrix.php >= 5.6 }}
run: composer test

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: parallel-lint-phar

Expand Down

0 comments on commit 9447a5c

Please sign in to comment.