Skip to content

Commit

Permalink
Use docker compose in GitHub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Oct 3, 2024
1 parent 9e25f40 commit f31adf2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request_target]

jobs:
build-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
ROBO_VERSION: [ "4.0", "5.0" ]
Expand All @@ -14,14 +14,10 @@ jobs:
PHP_VERSION: "8.0"
- ROBO_VERSION: "4.0"
PHP_VERSION: "8.1"

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
command: "require consolidation/robo:~${{ matrix.ROBO_VERSION }}"
php_version: ${{ matrix.PHP_VERSION }}
version: 2
- uses: php-actions/phpunit@v3
with:
test_suffix: FALSE
- name: test
run: |
docker compose up -d
docker compose exec -T php require consolidation/robo:~${{ matrix.ROBO_VERSION }}
docker compose exec -T php phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.lock
grumphp.yml
phpunit.xml
tests/fixtures/tmp/*.php
.phpunit.result.cache
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
php:
image: wodby/php:${PHP_VERSION}
volumes:
- .:/var/www/html

0 comments on commit f31adf2

Please sign in to comment.