Skip to content

Commit

Permalink
ci(next): update CI test matrix (#548)
Browse files Browse the repository at this point in the history
* ci(next): remove Drupal 9.4 from CI test matrix
* ci(next): add PHP 8.2 to CI test matrix
* ci(next): replace set-output with output parameter
   GitHub Actions' "set-output" is deprecated. See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
* ci(next): remove deprecated GH workflow
* ci: update GitHub actions versions

Fixes #543
  • Loading branch information
JohnAlbin authored Oct 13, 2023
1 parent 8f2837f commit bb9becc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/next-drupal-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install modules
run: yarn
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["8.0", "8.1"]
drupal: ["9.4", "9.5", "10.0"]
# Supported PHP versions: https://www.drupal.org/docs/getting-started/system-requirements/php-requirements
php: ["8.0", "8.1", "8.2"]
# Supported Drupal versions: https://www.drupal.org/project/drupal
drupal: ["9.5", "10.0"]
exclude:
- php: "8.0"
drupal: "10.0"
- drupal: "9.5"
php: "8.2"
- drupal: "10.0"
php: "8.0"
name: Drupal ${{ matrix.drupal }} - PHP ${{ matrix.php }}
services:
mysql:
Expand All @@ -26,7 +30,7 @@ jobs:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
Expand All @@ -37,12 +41,12 @@ jobs:
id: composercache
run: |
cd modules/next
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.drupal }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
restore-keys: ${{ runner.os }}-${{ matrix.drupal }}-composer-
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Setup Drupal
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
environment: Preview
steps:
- name: Init
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node
Expand Down
66 changes: 0 additions & 66 deletions modules/next/.github/workflows/main.yml

This file was deleted.

0 comments on commit bb9becc

Please sign in to comment.