Use docker compose in GitHub action. #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build-test: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
ROBO_VERSION: [ "4.0", "5.0" ] | ||
PHP_VERSION: [ "8.2", "8.3" ] | ||
include: | ||
- ROBO_VERSION: "4.0" | ||
PHP_VERSION: "8.0" | ||
- ROBO_VERSION: "4.0" | ||
PHP_VERSION: "8.1" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: test | ||
with: | ||
PHP_VERSION: ${{ matrix.PHP_VERSION }} | ||
run: | | ||
Check failure on line 22 in .github/workflows/ci.yml GitHub Actions / CIInvalid workflow file
|
||
docker compose up -d | ||
docker compose exec -T php require consolidation/robo:~${{ matrix.ROBO_VERSION }} | ||
docker compose exec -T php phpunit |