Skip to content

Use docker compose in GitHub action. #31

Use docker compose in GitHub action.

Use docker compose in GitHub action. #31

Workflow file for this run

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: |
docker compose up -d
docker compose exec -T php require consolidation/robo:~${{ matrix.ROBO_VERSION }}
docker compose exec -T php phpunit