Skip to content

Commit c1b1d97

Browse files
chore: update Github Actions versions
1 parent 09b2bbb commit c1b1d97

File tree

4 files changed

+16
-52
lines changed

4 files changed

+16
-52
lines changed

.github/workflows/build-dev-artifacts.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,11 @@ jobs:
1717
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
1818
steps:
1919
- name: Check out source files
20-
uses: actions/checkout@v2
21-
- name: Get Composer Cache Directory
22-
id: composer-cache
23-
run: |
24-
echo "::set-output name=dir::$(composer config cache-files-dir)"
25-
- name: Configure Composer cache
26-
uses: actions/cache@v1
20+
uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
2722
with:
28-
path: ${{ steps.composer-cache.outputs.dir }}
29-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-composer-
23+
node-version: 18
24+
cache: "npm"
3225
- name: Install composer deps
3326
env:
3427
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
@@ -99,4 +92,4 @@ jobs:
9992
comment-id: ${{ steps.find-comment.outputs.comment-id }}
10093
token: ${{ secrets.BOT_TOKEN }}
10194
edit-mode: replace
102-
body: ${{ steps.get-comment-body.outputs.body }}
95+
body: ${{ steps.get-comment-body.outputs.body }}

.github/workflows/create-tag.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
persist-credentials: false
1717
- name: Build files using ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ matrix.node-version }}
21+
cache: "npm"
2122
- name: Release new version
2223
id: release
2324
run: |
@@ -31,4 +32,4 @@ jobs:
3132
SEMANTIC_RELEASE_PACKAGE: Visualizer(free)
3233
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }}
3334
GIT_COMMITTER_NAME: themeisle[bot]
34-
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}
35+
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}

.github/workflows/test-e2e.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,11 @@ jobs:
1616
fail-fast: false
1717
runs-on: ubuntu-22.04
1818
steps:
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-node@v2
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
2121
with:
2222
node-version: "18"
23-
- uses: actions/cache@v2
24-
id: npm-and-build-cache
25-
with:
26-
path: |
27-
~/.cache/Cypress
28-
node_modules
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
23+
cache: "npm"
3224
- name: Install npm deps
3325
run: |
3426
npm ci

.github/workflows/test-php.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PHP Tests
33
on:
44
push:
55
branches-ignore:
6-
- 'master'
6+
- "master"
77

88
jobs:
99
phplint:
@@ -13,21 +13,10 @@ jobs:
1313
- name: Setup PHP version
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '7.4'
16+
php-version: "7.4"
1717
extensions: simplexml
1818
- name: Checkout source code
19-
uses: actions/checkout@v2
20-
- name: Get Composer Cache Directory
21-
id: composer-cache
22-
run: |
23-
echo "::set-output name=dir::$(composer config cache-files-dir)"
24-
- name: Setup Composer cache
25-
uses: actions/cache@v1
26-
with:
27-
path: ${{ steps.composer-cache.outputs.dir }}
28-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
29-
restore-keys: |
30-
${{ runner.os }}-composer-
19+
uses: actions/checkout@v4
3120
- name: Install composer
3221
run: |
3322
composer install --prefer-dist --no-progress
@@ -49,25 +38,14 @@ jobs:
4938
- name: Setup PHP version
5039
uses: shivammathur/setup-php@v2
5140
with:
52-
php-version: '7.4'
41+
php-version: "7.4"
5342
extensions: simplexml, mysql
5443
tools: phpunit-polyfills
5544
- name: Checkout source code
56-
uses: actions/checkout@v2
45+
uses: actions/checkout@v4
5746
- name: Install WordPress Test Suite
5847
run: |
5948
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }}
60-
- name: Get Composer Cache Directory
61-
id: composer-cache
62-
run: |
63-
echo "::set-output name=dir::$(composer config cache-files-dir)"
64-
- name: Setup Composer cache
65-
uses: actions/cache@v1
66-
with:
67-
path: ${{ steps.composer-cache.outputs.dir }}
68-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
69-
restore-keys: |
70-
${{ runner.os }}-composer-
7149
- name: Install composer
7250
run: |
7351
composer install --prefer-dist --no-progress --no-dev

0 commit comments

Comments
 (0)