Skip to content

Commit

Permalink
simplify workflow matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
falkenhawk committed Oct 10, 2022
1 parent 8777125 commit 7bcaf94
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:

jobs:
test:
name: PHP:${{ matrix.php }} PHP_INVOKER:${{ toJSON(matrix.php_invoker) }} ALLOW_FAILURES:${{ toJSON(matrix.experimental) }} COVERAGE:${{ toJSON(matrix.coverage) }}
name: PHP:${{ matrix.php }} php-invoker:${{ toJSON(matrix.php_invoker) }}${{ matrix.coverage && ' (with coverage)' || '' }}${{ matrix.experimental && ' (allowing failures - php version not supported yet)' || '' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
experimental: [false]
coverage: [false]
php:
- "5.3"
- "5.4"
Expand All @@ -24,40 +22,20 @@ jobs:
- "7.1"
- "7.2"
- "7.3"
php_invoker:
- true
- false
- "8.0"
- "8.1"
- "8.2"
php_invoker: [true, false]
coverage: [false]
experimental: [false]
include:
- php: "7.4"
php_invoker: true
coverage: true
# run coverage only on PHP 7.4
- php: "7.4"
php_invoker: false
coverage: true
- php: "8.0"
php_invoker: true
experimental: false
coverage: false
- php: "8.0"
php_invoker: false
coverage: false
experimental: false
- php: "8.1"
php_invoker: true
experimental: false
coverage: false
- php: "8.1"
php_invoker: false
experimental: false
coverage: false
- php: "8.2"
- php: "7.4"
php_invoker: true
experimental: true
coverage: false
- php: "8.2"
php_invoker: false
experimental: true
coverage: false
coverage: true

steps:
- name: Checkout Code
Expand Down

0 comments on commit 7bcaf94

Please sign in to comment.