JsonToStdErrHandler improved #19
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: phpunit tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout on commit in the repository" | |
uses: actions/checkout@v2 | |
- name: "Build the Docker image" | |
run: docker build -t image:latest -f ./Dockerfile ./ | |
# run command in virtual machine | |
- run: id | |
- run: pwd | |
# run commands in docker: | |
- run: docker run --rm -v $(pwd):/app -w /app image:latest composer install --optimize-autoloader --no-scripts --no-interaction | |
- run: docker run --rm -v $(pwd):/app -w /app image:latest /app/vendor/bin/phpunit /app/tests --stderr --stop-on-incomplete --stop-on-failure --stop-on-warning --fail-on-warning --stop-on-risky --fail-on-risky -v |