Skip to content

Commit

Permalink
GH Actions: merge "moderate" and "modern" jobs
Browse files Browse the repository at this point in the history
As there is now effectively no difference anymore between the `moderate` and `modern` jobs, these jobs can now be merged into one.
  • Loading branch information
jrfnl committed Aug 8, 2021
1 parent d0bbad2 commit 71c5eb7
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/ci.yml
Expand Up @@ -30,40 +30,13 @@ jobs:
- name: PHPUnit tests
run: vendor/bin/phpunit

moderate:
moderate-modern:
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.1', '7.2', '7.3']
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, sodium
coverage: none

- name: Modernize dependencies
run: composer require --dev --no-update "phpunit/phpunit:>=4"

- name: Install Composer dependencies
uses: "ramsey/composer-install@v1"

- name: PHPUnit tests
run: vendor/bin/phpunit

modern:
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.4', '8.0']
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 71c5eb7

Please sign in to comment.