Skip to content

Commit

Permalink
Update GitHub actions (#190)
Browse files Browse the repository at this point in the history
* ci: use `actions/setup-node@v4` in setup-wordpress action

* ci: e2e-tests: Update actions and pin Ubuntu version

* ci: release workflow: Update actions and pin Ubuntu version

* ci: schema-linter: Update actions and pin Ubuntu version

* ci: sonar: Update actions and pin Ubuntu version

* ci: test-plugin: Update actions and pin Ubuntu version

* ci: test-plugin: Drop WP 5.9 and test 6.1.

* ci: upload-schema-artifact: Update actions and pin Ubuntu version

* ci: wpcs: Update actions and pin Ubuntu version

* Remove unnecessary e2e test

* Remove `@wordpress/env` package

* Remove `@wordpress/e2e-test-utils` package
  • Loading branch information
mindctrl authored Feb 22, 2024
1 parent 5784a22 commit 4194606
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 1,277 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-wordpress/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
tools: composer:v2, wp-cli

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/e2e-tests.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
uses: ./.github/workflows/test-plugin.yml
release:
name: Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/schema-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
run:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Lint WPGraphQL Schema
if: contains(github.event.pull_request.labels.*.name, 'safe to test ✔') || github.repository == github.event.repository.full_name || github.event_name == 'push'

Expand All @@ -32,7 +32,7 @@ jobs:
uses: styfle/[email protected]

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
npm install @graphql-inspector/config @graphql-inspector/cli graphql
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: schema.graphql
path: /tmp/schema.graphql
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
name: Main Workflow
jobs:
sonarqube:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
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
8 changes: 4 additions & 4 deletions .github/workflows/test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:

jobs:
test_plugin:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
php: [ '8.2', '7.4' ]
wordpress: [ '6.3', '6.2', '5.9' ]
wordpress: [ '6.3', '6.2', '6.1' ]
exclude:
- php: 8.2
wordpress: 5.9
wordpress: 6.1
- php: 7.4
wordpress: 6.2
- php: 7.4
Expand All @@ -24,7 +24,7 @@ jobs:
name: WordPress ${{ matrix.wordpress }}, PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create Docker Containers
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-schema-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
run:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Generate and Upload WPGraphQL Schema Artifact
services:
mariadb:
Expand All @@ -19,7 +19,7 @@ jobs:
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup WordPress
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:

jobs:
wpcs:
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
Expand Down
Loading

0 comments on commit 4194606

Please sign in to comment.