Attempt at optimizing the job matrix
parent
ef8c410098
commit
acef74d1ab
|
@ -7,17 +7,19 @@ on:
|
||||||
- "pull_request"
|
- "pull_request"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --no-suggest --prefer-dist --optimize-autoloader"
|
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --no-suggest --prefer-dist"
|
||||||
SYMFONY_PHPUNIT_VERSION: ""
|
SYMFONY_PHPUNIT_VERSION: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: "Tests"
|
name: "Tests"
|
||||||
|
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
dependencies: [locked]
|
||||||
php-version:
|
php-version:
|
||||||
- "5.3"
|
- "5.3"
|
||||||
- "5.4"
|
- "5.4"
|
||||||
|
@ -28,10 +30,22 @@ jobs:
|
||||||
- "7.2"
|
- "7.2"
|
||||||
- "7.3"
|
- "7.3"
|
||||||
- "7.4"
|
- "7.4"
|
||||||
|
include:
|
||||||
dependencies:
|
- php-version: 5.3
|
||||||
- "locked"
|
os: ubuntu-latest
|
||||||
- "highest"
|
dependencies: highest
|
||||||
|
- php-version: 5.3
|
||||||
|
os: ubuntu-latest
|
||||||
|
dependencies: lowest
|
||||||
|
- php-version: 7.4
|
||||||
|
os: ubuntu-latest
|
||||||
|
dependencies: highest
|
||||||
|
- php-version: 7.4
|
||||||
|
os: windows-latest
|
||||||
|
dependencies: locked
|
||||||
|
- php-version: 7.4
|
||||||
|
os: macos-latest
|
||||||
|
dependencies: locked
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
|
@ -60,12 +74,15 @@ jobs:
|
||||||
if: "matrix.dependencies == 'highest'"
|
if: "matrix.dependencies == 'highest'"
|
||||||
run: "composer update ${{ env.COMPOSER_FLAGS }}"
|
run: "composer update ${{ env.COMPOSER_FLAGS }}"
|
||||||
|
|
||||||
|
- name: "Install lowest dependencies from composer.lock using composer binary provided by system"
|
||||||
|
if: "matrix.dependencies == 'lowest'"
|
||||||
|
run: "composer install ${{ env.COMPOSER_FLAGS }} --prefer-lowest"
|
||||||
|
|
||||||
- name: "Install dependencies from composer.lock using composer binary provided by system"
|
- name: "Install dependencies from composer.lock using composer binary provided by system"
|
||||||
if: "matrix.dependencies == 'locked'"
|
if: "matrix.dependencies == 'locked'"
|
||||||
run: "composer install ${{ env.COMPOSER_FLAGS }}"
|
run: "composer install ${{ env.COMPOSER_FLAGS }}"
|
||||||
|
|
||||||
- name: "Install dependencies from composer.lock using composer binary from source"
|
- name: "Run install again using composer binary from source"
|
||||||
if: "matrix.dependencies == 'locked'"
|
|
||||||
run: "bin/composer install ${{ env.COMPOSER_FLAGS }}"
|
run: "bin/composer install ${{ env.COMPOSER_FLAGS }}"
|
||||||
|
|
||||||
- name: "Prepare git environment"
|
- name: "Prepare git environment"
|
||||||
|
|
Loading…
Reference in New Issue