From 47d76c462d6d6b2a94f557caee5dac5169d35014 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Sun, 9 Jun 2024 19:24:06 -0400 Subject: [PATCH 1/2] Bump action versions --- .github/workflows/build.yml | 8 ++++---- .github/workflows/check-tags.yml | 4 ++-- .github/workflows/test.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15ddc2a..1bebfe1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/check-tags.yml b/.github/workflows/check-tags.yml index 236c605..1ff91e5 100644 --- a/.github/workflows/check-tags.yml +++ b/.github/workflows/check-tags.yml @@ -18,7 +18,7 @@ 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 }} @@ -26,7 +26,7 @@ jobs: - 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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f40824..724126a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 From 32b6499309e43dca2f863d7634f1100eb26cbc56 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Sun, 9 Jun 2024 19:24:41 -0400 Subject: [PATCH 2/2] Replace with ramsey/composer-install --- .github/workflows/build.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bebfe1..eda967a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,23 +40,14 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@github.com" - - 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