Complete with API v1.5.0 change log #42
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-docker-test | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/ci-docker-test.yml | |
- app/** | |
- bootstrap/** | |
- config/** | |
- database/** | |
- docker/** | |
- public/** | |
- resources/** | |
- routes/** | |
- storage/** | |
- tests/** | |
- .dockerignore | |
- .env.travis | |
- artisan | |
- composer.json | |
- composer.lock | |
- Dockerfile | |
- phpunit.xml | |
pull_request: | |
branches: | |
- master | |
paths: | |
- .github/workflows/ci-docker-test.yml | |
- app/** | |
- bootstrap/** | |
- config/** | |
- database/** | |
- docker/** | |
- public/** | |
- resources/** | |
- routes/** | |
- storage/** | |
- tests/** | |
- .dockerignore | |
- .env.travis | |
- artisan | |
- composer.json | |
- composer.lock | |
- Dockerfile | |
- phpunit.xml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_BUILDKIT: "1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build test image | |
run: docker build --target test -t test-container . | |
- name: Run tests in test container | |
run: | | |
touch coverage.txt | |
docker run --rm \ | |
test-container | |
- name: Build final image | |
run: docker build . |