Skip to content

Commit

Permalink
Simplify docker build, use stable PHP 8 image
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Dec 1, 2020
1 parent 30a1f91 commit 9e98993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ jobs:

strategy:
matrix:
php_version: ["7.4"]
php_target: ["php:7.4-cli"]
php: ["7.4", "8.0"]
laravel: ["^6.0", "^8.0"]
include:
- php_version: "8.0"
php_target: "php:8.0.0RC5-cli"
laravel: "^8.0"

steps:
- uses: actions/checkout@v2
- 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
run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}"
- name: Run tests
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
context: .
args:
PHP_VERSION: ${PHP_VERSION}
PHP_TARGET: ${PHP_TARGET}
depends_on:
mysql:
condition: service_healthy
Expand Down

0 comments on commit 9e98993

Please sign in to comment.