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 diff --git a/.github/workflows/e2e-next-example.yml b/.github/workflows/e2e-next-example.yml index 80ad47c0d..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}} @@ -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 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 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 }} 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 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 }} 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 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: 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: 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 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!' 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 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. 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 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 }} 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