Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #1798

Merged
merged 17 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/audit-dependencies.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/e2e-next-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-next-faustwp-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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 }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/experimental-app-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/nextjs-bundle-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -117,23 +117,23 @@ 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:
issue-number: ${{ github.event.number }}
body-includes: '<!-- __NEXTJS_BUNDLE_@faustwp/getting-started-example -->'

- 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:
issue-number: ${{ github.event.number }}
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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notify-discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
release_plugin:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Discord Notification
env:
Expand All @@ -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!'
8 changes: 4 additions & 4 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarqube-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading