From f996c0b1977ecfa8aa8517a7baac89e80075a8c8 Mon Sep 17 00:00:00 2001 From: John Parris Date: Fri, 9 Feb 2024 13:55:58 -0500 Subject: [PATCH 01/17] ci: remove audit-dependencies workflow --- .github/workflows/audit-dependencies.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .github/workflows/audit-dependencies.yml diff --git a/.github/workflows/audit-dependencies.yml b/.github/workflows/audit-dependencies.yml deleted file mode 100644 index 9682d5af1..000000000 --- a/.github/workflows/audit-dependencies.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Audit Dependencies - -on: pull_request - -jobs: - audit_dependencies: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Audit for vulnerabilities - run: npx audit-ci@^6 --config ./audit-ci.jsonc From d1167d4e4b4452254dcece5b963803be85345f1c Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 10:54:04 -0500 Subject: [PATCH 02/17] ci: e2e-next-example: upgrade action versions. Upgrades actions/checkout from v3 to v4. Upgrades actions/setup-node from v3 to v4. --- .github/workflows/e2e-next-example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-next-example.yml b/.github/workflows/e2e-next-example.yml index 80ad47c0d..68f7f447a 100644 --- a/.github/workflows/e2e-next-example.yml +++ b/.github/workflows/e2e-next-example.yml @@ -20,9 +20,9 @@ jobs: working-directory: ./ steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} # Get the PR branch so we can pull the correct Next.js example path From 383d9c00af17a00b2ff5fc0e54bb1099808f6c45 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 10:56:33 -0500 Subject: [PATCH 03/17] ci: e2e-next-example: Pin Ubuntu to ubuntu-22.04 --- .github/workflows/e2e-next-example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-next-example.yml b/.github/workflows/e2e-next-example.yml index 68f7f447a..9e25815b2 100644 --- a/.github/workflows/e2e-next-example.yml +++ b/.github/workflows/e2e-next-example.yml @@ -8,7 +8,7 @@ on: jobs: e2e-test-next-getting-started-example: name: (legacy) Next Getting Started Example on Node ${{ matrix.node }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: PR_REPO: ${{github.event.pull_request.head.repo.full_name}} PR_BRANCH: ${{github.event.pull_request.head.ref}} From 051ef63c29818b09b64a14355668604903c40d3b Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:01:13 -0500 Subject: [PATCH 04/17] ci: e2e-next-faustwp-example: pin ubuntu-22.04. Upgrade checkout and setup-node actions to v4. --- .github/workflows/e2e-next-faustwp-example.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-next-faustwp-example.yml b/.github/workflows/e2e-next-faustwp-example.yml index 4aed8b02e..47d201b8b 100644 --- a/.github/workflows/e2e-next-faustwp-example.yml +++ b/.github/workflows/e2e-next-faustwp-example.yml @@ -8,7 +8,7 @@ on: jobs: e2e-test-next-getting-started-example: name: (faustwp) Next Getting Started Example on Node ${{ matrix.node }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: PR_REPO: ${{github.event.pull_request.head.repo.full_name}} PR_BRANCH: ${{github.event.pull_request.head.ref}} @@ -20,9 +20,9 @@ jobs: working-directory: ./ steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} # Get the PR branch so we can pull the correct Next.js example path From 6cf9e2795a4614d726a61f9ff3d20e14d2251afd Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:03:30 -0500 Subject: [PATCH 05/17] ci: e2e-nightly-build: pin ubuntu-22.04. Upgrade checkout and setup-node actions to v4. --- .github/workflows/e2e-nightly-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-nightly-build.yml b/.github/workflows/e2e-nightly-build.yml index 0f2bfc59f..4f1e06f83 100644 --- a/.github/workflows/e2e-nightly-build.yml +++ b/.github/workflows/e2e-nightly-build.yml @@ -9,7 +9,7 @@ on: jobs: e2e-nightly-test: name: E2E app on Node ${{ matrix.node }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: node: ['16', '18', '20'] @@ -18,10 +18,10 @@ jobs: working-directory: ./ steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} From 24c4e2ef2b468c02c11b74e2bd1e9a070a3d38ac Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:04:44 -0500 Subject: [PATCH 06/17] ci: e2e-test-plugin: Update actions and pin Ubuntu version --- .github/workflows/e2e-test-plugin.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-test-plugin.yml b/.github/workflows/e2e-test-plugin.yml index 69ecb7bd3..c9c68b825 100644 --- a/.github/workflows/e2e-test-plugin.yml +++ b/.github/workflows/e2e-test-plugin.yml @@ -8,12 +8,12 @@ on: jobs: e2e_test_plugin: timeout-minutes: 10 - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '16' - name: Install NPM Deps @@ -61,7 +61,7 @@ jobs: working-directory: plugins/faustwp run: vendor/bin/codecept run api - name: Upload Test Output - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: failed-test-output From 0111a0a42a277806e29f33ea9a0e1bbf3e7e6617 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:54:33 -0500 Subject: [PATCH 07/17] ci: experimental-app-router: Update actions and pin Ubuntu version --- .github/workflows/experimental-app-router.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/experimental-app-router.yml b/.github/workflows/experimental-app-router.yml index ae3a7dfc5..5963debe7 100644 --- a/.github/workflows/experimental-app-router.yml +++ b/.github/workflows/experimental-app-router.yml @@ -8,16 +8,16 @@ jobs: name: "Build and Test Experimental App Router on Node.js ${{ matrix.node }} ${{ matrix.os }}" strategy: matrix: - os: ['ubuntu-latest'] + os: ['ubuntu-22.04'] node: ['18', '20'] permissions: checks: write pull-requests: write runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} From e49b55030c2a03d3d5ca4f2446ae9ccdc3409d83 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:57:52 -0500 Subject: [PATCH 08/17] ci: lint-packages: Update actions and pin Ubuntu version --- .github/workflows/lint-packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-packages.yml b/.github/workflows/lint-packages.yml index 6da241597..9c4bd2c60 100644 --- a/.github/workflows/lint-packages.yml +++ b/.github/workflows/lint-packages.yml @@ -7,10 +7,10 @@ on: jobs: lint_packages: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '16' - run: npm ci From ca8adbf61c7b49cbe25dcdba2072913a3b83c8ed Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 11:58:34 -0500 Subject: [PATCH 09/17] ci: lint-plugin: Update actions and pin Ubuntu version --- .github/workflows/lint-plugin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-plugin.yml b/.github/workflows/lint-plugin.yml index 1b7857705..78bc0bca3 100644 --- a/.github/workflows/lint-plugin.yml +++ b/.github/workflows/lint-plugin.yml @@ -7,10 +7,10 @@ on: jobs: lint_plugin: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: From ce61616fea63337a13f4c46719982238742337ab Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:00:29 -0500 Subject: [PATCH 10/17] ci: nextjs-bundle-analysis: Update actions and pin Ubuntu version --- .github/workflows/nextjs-bundle-analysis.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index 0a94e0fad..f0e50883f 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -27,12 +27,12 @@ jobs: 'examples/next/faustwp-getting-started', ] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -65,7 +65,7 @@ jobs: npm pkg set nextBundleAnalysis.budget=358400 nextBundleAnalysis.budgetPercentIncreaseRed=20 nextBundleAnalysis.showDetails=true --json - name: Restore next build - uses: actions/cache@v3 + uses: actions/cache@v4 id: restore-build-cache env: cache-name: cache-next-build @@ -87,13 +87,13 @@ jobs: run: npx -p nextjs-bundle-analysis report - name: Upload bundle analysis report for this PR - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bundle path: ${{ matrix.next-dir }}/.next/analyze/__bundle_analysis.json - name: Download bundle analysis report for base branch - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 if: success() && github.event.number with: workflow: nextjs-bundle-analysis.yml @@ -117,7 +117,7 @@ jobs: echo EOF >> $GITHUB_OUTPUT - name: Find Comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 if: success() && github.event.number id: fc with: @@ -125,7 +125,7 @@ jobs: body-includes: '' - name: Create Comment - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 continue-on-error: true if: success() && github.event.number && steps.fc.outputs.comment-id == 0 with: @@ -133,7 +133,7 @@ jobs: body: ${{ steps.get-comment-body.outputs.body }} - name: Update Comment - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 continue-on-error: true if: success() && github.event.number && steps.fc.outputs.comment-id != 0 with: From 51450ae81103308dee51aa4ea463a388c4dbad2b Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:06:44 -0500 Subject: [PATCH 11/17] ci: nightly-releases: Update actions and pin Ubuntu version Pins setup-node to v4 instead of master. --- .github/workflows/nightly-releases.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-releases.yml b/.github/workflows/nightly-releases.yml index 9903a5ebd..e995a2c98 100644 --- a/.github/workflows/nightly-releases.yml +++ b/.github/workflows/nightly-releases.yml @@ -23,15 +23,15 @@ on: jobs: release_nightly_canary: name: Release Nightly Canary - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js 18.x - uses: actions/setup-node@master + uses: actions/setup-node@v4 with: node-version: 18.x From 98fa87531063d652aa76c0f9070502dedb771e99 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:08:27 -0500 Subject: [PATCH 12/17] ci: notify-discord: Update actions and pin Ubuntu version --- .github/workflows/notify-discord.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml index 46a0ca007..a2b936b9a 100644 --- a/.github/workflows/notify-discord.yml +++ b/.github/workflows/notify-discord.yml @@ -12,7 +12,7 @@ on: jobs: release_plugin: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Discord Notification env: @@ -33,6 +33,6 @@ jobs: ] } ] - uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 + uses: Ilshidur/action-discord@0.3.2 with: args: '${{ github.ref_name }} has been released!' From b2c6addc76bfa335b0484c47191e4927bdf79fcd Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:10:25 -0500 Subject: [PATCH 13/17] ci: release-packages: Update actions and pin Ubuntu version --- .github/workflows/release-packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 03575ee34..6a523dc23 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -7,17 +7,17 @@ on: jobs: release_packages: - name: Release Packages - runs-on: ubuntu-latest + name: Release Packages + runs-on: ubuntu-22.04 steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - name: Setup Node.js 18.x - uses: actions/setup-node@master + uses: actions/setup-node@v4 with: node-version: 18.x From de443591a4d0a9a2b55d467a3c7de0cb2e01e8ee Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:10:50 -0500 Subject: [PATCH 14/17] ci: release-plugin: Update actions and pin Ubuntu version --- .github/workflows/release-plugin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-plugin.yml b/.github/workflows/release-plugin.yml index a58325864..44f120384 100644 --- a/.github/workflows/release-plugin.yml +++ b/.github/workflows/release-plugin.yml @@ -5,10 +5,10 @@ on: - "@faustwp/wordpress-plugin@*" jobs: release_plugin: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - name: WordPress Plugin Deploy # Use a variant of 10up/action-wordpress-plugin-deploy that allows us to specify a PLUGIN_DIR # to support our monorepo structure. From 4d24eab1e76487569c147928002452fdfa5f7522 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:11:50 -0500 Subject: [PATCH 15/17] ci: sonarqube-scan: Update checkout action to v4 --- .github/workflows/sonarqube-scan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube-scan.yml b/.github/workflows/sonarqube-scan.yml index 592119b50..7dc3d8220 100644 --- a/.github/workflows/sonarqube-scan.yml +++ b/.github/workflows/sonarqube-scan.yml @@ -14,7 +14,7 @@ jobs: if: github.repository_owner == 'wpengine' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 From bcfe2f98542891d642781c828b2ea51d04df1134 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:12:26 -0500 Subject: [PATCH 16/17] ci: test-packages: Update actions and pin Ubuntu version --- .github/workflows/test-packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-packages.yml b/.github/workflows/test-packages.yml index 751810551..e30694a77 100644 --- a/.github/workflows/test-packages.yml +++ b/.github/workflows/test-packages.yml @@ -10,16 +10,16 @@ jobs: name: "Test packages on Node.js ${{ matrix.node }} ${{ matrix.os }}" strategy: matrix: - os: ['ubuntu-latest'] + os: ['ubuntu-22.04'] node: ['16', '18', '20'] permissions: checks: write pull-requests: write runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} From 09c9b84282d08660f05aee04b50a7a1f08763fb0 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 12 Feb 2024 15:12:50 -0500 Subject: [PATCH 17/17] ci: test-plugin: Update actions and pin Ubuntu version --- .github/workflows/test-plugin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-plugin.yml b/.github/workflows/test-plugin.yml index 9fccdb951..683d6942e 100644 --- a/.github/workflows/test-plugin.yml +++ b/.github/workflows/test-plugin.yml @@ -8,13 +8,13 @@ on: jobs: test_plugin: name: WordPress ${{ matrix.wordpress }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: wordpress: ['6.3', '6.4'] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create Docker Containers working-directory: ./plugins/faustwp run: docker-compose up -d