mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:14:04 +00:00
Try using matrix include
This commit is contained in:
parent
d9b65bf36f
commit
5f043507b4
1 changed files with 7 additions and 19 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
|
@ -3,14 +3,6 @@ name: CI
|
||||||
env:
|
env:
|
||||||
COMPOSE_INTERACTIVE_NO_CLI: 1
|
COMPOSE_INTERACTIVE_NO_CLI: 1
|
||||||
|
|
||||||
php-images:
|
|
||||||
- "7.4":
|
|
||||||
- target=php:7.4-cli
|
|
||||||
- version=7.4
|
|
||||||
- "8.0":
|
|
||||||
- target=php:8.0.0RC5-cli
|
|
||||||
- version=8.0
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ 3.x, 2.x, master ]
|
branches: [ 3.x, 2.x, master ]
|
||||||
|
|
@ -23,21 +15,17 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: [
|
php_version: ["7.4"] # defaults to target php:7.4-cli
|
||||||
"7.4",
|
laravel: ["^6.0", "^8.0"]
|
||||||
"8.0"
|
include:
|
||||||
]
|
- php_version: "8.0"
|
||||||
|
- php_target: "php:8.0.0RC5-cli"
|
||||||
laravel: [
|
- laravel: "^8.0"
|
||||||
"^6.0",
|
|
||||||
"^7.0",
|
|
||||||
"^8.0"
|
|
||||||
]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Start docker containers
|
- name: Start docker containers
|
||||||
run: PHP_TARGET=${{ php[matrix.php].target }} PHP_VERSINON=${{ php[matrix.php].version }} docker-compose up -d
|
run: PHP_TARGET=${{ matrix.php_target }} PHP_VERSION=${{ matrix.php_version }} docker-compose up -d
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}"
|
run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue