Use alternative GH actions to run phpunit tests

This commit is contained in:
Bubka 2022-04-04 15:05:53 +02:00
parent 4dd8a2df90
commit 9ef2cb92f3

View File

@ -25,21 +25,22 @@ on:
- server.php - server.php
jobs: jobs:
verify: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2
- name: Build test image - name: Install dependencies
run: docker build --target test -t test-container . - uses: php-actions/composer@v6
with:
php_version: 7.4
dev: no
- name: Run tests in test container - name: Run PHPUnit tests
run: | uses: php-actions/phpunit@v3
touch coverage.txt with:
docker run --rm \ php_version: 7.4
test-container version: 9.5
bootstrap: vendor/autoload.php
- name: Build final image configuration: phpunit.xml
run: docker build .