Skip to content

Improve code style (#24) #80

Improve code style (#24)

Improve code style (#24) #80

Workflow file for this run

name: build
on:
pull_request:
paths: &paths
- 'config/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/build.yml'
- 'composer.json'
- 'phpunit.xml.dist'
push:
branches: ['master']
paths: *paths
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
phpunit:
name: phpunit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Build
working-directory: ./tests
run: docker compose build
- name: PHP Unit tests coverage
working-directory: ./tests
run: docker compose run --rm php-cli vendor/bin/phpunit --coverage-clover ./tests/runtime/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
verbose: true
files: ./tests/runtime/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}