BZR-62: generate xml report #13
Workflow file for this run
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: test-coverage | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
branches: | |
- "master" | |
push: | |
branches: | |
- "master" | |
- "BZR-**" | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
cp .env.example .env | |
export UID | |
docker-compose -f docker-compose.dev.yml up --build -d | |
docker exec -i buzzer_app id | |
docker exec -i -u root buzzer_app composer install | |
docker exec -i -u root buzzer_app php artisan key:generate | |
docker exec -i -u root buzzer_app php artisan migrate | |
docker exec -i -u root buzzer_app vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# provare senza "export UID" e "docker exec -i buzzer_app id" |