Skip to content

Commit

Permalink
Merge pull request #6 from wp-phpunit/update-actions
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
aaemnnosttv authored Jun 9, 2024
2 parents 7cbf003 + 32b6499 commit a44f51d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ jobs:
WP_PHPUNIT_REPO: ${{ secrets.WP_PHPUNIT_REPO }}
steps:
- name: Generate token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: wp-phpunit/build

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: wordpress/wordpress-develop
path: repos/wordpress

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ format('wp-phpunit/{0}', secrets.TARGET_REPO_NAME) }}
path: repos/package
Expand All @@ -40,23 +40,14 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache PHP dependencies
uses: actions/cache@v3
id: actions-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer:2.2

- run: composer install --prefer-dist --no-dev
- uses: "ramsey/composer-install@v3"
with:
composer-options: "--no-dev --prefer-dist"

- name: Run
run: bin/build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:

steps:
- name: Generate token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}

- name: Determine tags to build
id: tags-to-build
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ steps.generate-token.outputs.token }}
debug: 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

0 comments on commit a44f51d

Please sign in to comment.