Skip to content

Commit

Permalink
Merge pull request #502 from qossmic/update-build-matrix-os
Browse files Browse the repository at this point in the history
update build matrix OS
  • Loading branch information
Simon Mönch authored Feb 26, 2021
2 parents a60a911 + fa85c60 commit 56ddeb3
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 18 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ jobs:
build:
name: "Build"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: ubuntu-20.04
php-version: 7.4

steps:
- name: "Checkout"
Expand All @@ -32,7 +38,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: ${{ matrix.php-version }}
extensions: mbstring, xml, ctype, iconv
ini-values: phar.readonly=0
coverage: none
Expand Down Expand Up @@ -72,11 +78,15 @@ jobs:

needs: build

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
php-version: [ 7.2, 8.0 ]
include:
- os: ubuntu-18.04
php-version: 7.2
- os: ubuntu-20.04
php-version: 8.0

steps:
- name: "Checkout"
Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ jobs:
coding-standards:
name: "Coding Standards"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: ubuntu-18.04
php-version: 7.2

steps:
- name: "Checkout"
Expand All @@ -32,7 +38,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: ${{ matrix.php-version }}
extensions: mbstring, xml, ctype, iconv
coverage: none
tools: phive
Expand All @@ -46,7 +52,13 @@ jobs:
static-code-analysis-phpstan:
name: "Static Code Analysis by PHPStan"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: ubuntu-18.04
php-version: 7.2

steps:
- name: "Checkout"
Expand All @@ -66,7 +78,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: ${{ matrix.php-version }}
extensions: mbstring, xml, ctype, iconv
coverage: none
tools: phive, composer:v2
Expand Down Expand Up @@ -97,7 +109,13 @@ jobs:
static-code-analysis-psalm:
name: "Static Code Analysis by Psalm"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: ubuntu-20.04
php-version: 7.4

steps:
- name: "Checkout"
Expand All @@ -117,7 +135,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: ${{ matrix.php-version }}
extensions: mbstring, xml, ctype, iconv
coverage: none
tools: phive, composer:v2
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ name: "Tests"

jobs:
unit-tests:
name: "PHP ${{ matrix.php-version }} Test"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
php-version: [7.2, 7.3, 7.4, 8.0]
os: [ubuntu-20.04]
php-version: [7.4, 8.0]
include:
- os: ubuntu-18.04
php-version: 7.2
- os: ubuntu-18.04
php-version: 7.3

steps:
- name: "Checkout"
Expand Down Expand Up @@ -62,13 +66,13 @@ jobs:
run: make tests

infection:
name: "PHP ${{ matrix.php-version }} Infection"

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
php-version: [ 7.4 ]
include:
- os: ubuntu-20.04
php-version: 7.4

steps:
- name: "Checkout"
Expand Down

0 comments on commit 56ddeb3

Please sign in to comment.