Skip to content

BZR-62: add code coverage #12

BZR-62: add code coverage

BZR-62: add code coverage #12

Workflow file for this run

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-html tmp/coverage
- 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"