mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 14:32:09 +02:00
Use alternative GH actions to run phpunit tests
This commit is contained in:
parent
4dd8a2df90
commit
9ef2cb92f3
29
.github/workflows/phpunit.yml
vendored
29
.github/workflows/phpunit.yml
vendored
@ -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 .
|
|
Loading…
x
Reference in New Issue
Block a user