Skip to content

Commit a44f51d

Browse files
authored
Merge pull request #6 from wp-phpunit/update-actions
Update actions
2 parents 7cbf003 + 32b6499 commit a44f51d

3 files changed

Lines changed: 10 additions & 19 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ jobs:
1313
WP_PHPUNIT_REPO: ${{ secrets.WP_PHPUNIT_REPO }}
1414
steps:
1515
- name: Generate token
16-
uses: tibdex/github-app-token@v1
16+
uses: tibdex/github-app-token@v2
1717
id: generate-token
1818
with:
1919
app_id: ${{ secrets.BOT_APP_ID }}
2020
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
2121

22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
with:
2424
repository: wp-phpunit/build
2525

26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
with:
2828
repository: wordpress/wordpress-develop
2929
path: repos/wordpress
3030

31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
repository: ${{ format('wp-phpunit/{0}', secrets.TARGET_REPO_NAME) }}
3434
path: repos/package
@@ -40,23 +40,14 @@ jobs:
4040
git config user.name "GitHub Actions"
4141
git config user.email "actions@github.com"
4242
43-
- name: Get Composer Cache Directory
44-
id: composer-cache
45-
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
46-
- name: Cache PHP dependencies
47-
uses: actions/cache@v3
48-
id: actions-cache
49-
with:
50-
path: ${{ steps.composer-cache.outputs.dir }}
51-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
52-
restore-keys: ${{ runner.os }}-composer-
53-
5443
- uses: shivammathur/setup-php@v2
5544
with:
5645
php-version: '7.2'
5746
tools: composer:2.2
5847

59-
- run: composer install --prefer-dist --no-dev
48+
- uses: "ramsey/composer-install@v3"
49+
with:
50+
composer-options: "--no-dev --prefer-dist"
6051

6152
- name: Run
6253
run: bin/build

.github/workflows/check-tags.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818

1919
steps:
2020
- name: Generate token
21-
uses: tibdex/github-app-token@v1
21+
uses: tibdex/github-app-token@v2
2222
id: generate-token
2323
with:
2424
app_id: ${{ secrets.BOT_APP_ID }}
2525
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
2626

2727
- name: Determine tags to build
2828
id: tags-to-build
29-
uses: actions/github-script@v6
29+
uses: actions/github-script@v7
3030
with:
3131
github-token: ${{ steps.generate-token.outputs.token }}
3232
debug: 'true'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010

1111
- uses: reviewdog/action-actionlint@v1
1212
name: Lint GitHub Actions

0 commit comments

Comments
 (0)