1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00

Simplify docker build, use stable PHP 8 image

This commit is contained in:
Samuel Štancl 2020-12-01 18:20:25 +01:00
parent 30a1f9102d
commit 9e9899349f
2 changed files with 2 additions and 8 deletions

View file

@ -15,18 +15,13 @@ jobs:
strategy: strategy:
matrix: matrix:
php_version: ["7.4"] php: ["7.4", "8.0"]
php_target: ["php:7.4-cli"]
laravel: ["^6.0", "^8.0"] laravel: ["^6.0", "^8.0"]
include:
- php_version: "8.0"
php_target: "php:8.0.0RC5-cli"
laravel: "^8.0"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Start docker containers - name: Start docker containers
run: PHP_TARGET=${{ matrix.php_target }} PHP_VERSION=${{ matrix.php_version }} docker-compose up -d run: PHP_VERSION=${{ matrix.php }} 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

View file

@ -5,7 +5,6 @@ services:
context: . context: .
args: args:
PHP_VERSION: ${PHP_VERSION} PHP_VERSION: ${PHP_VERSION}
PHP_TARGET: ${PHP_TARGET}
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy