Skip to content

6.1.0

6.1.0 #46

Workflow file for this run

# https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
name: phpunit
on:
pull_request: {}
release: {}
push:
branches: [ master ]
jobs:
tests:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ 8.1, 8.2, 8.3, 8.4 ]
# permissions:
# contents: read
# pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: php-actions/composer@v6
- name: phpunit tests ${{ matrix.php-versions }}
uses: php-actions/phpunit@v4
with:
bootstrap: vendor/autoload.php
configuration: test/phpunit.xml
php_extensions: pcov
php_version: ${{ matrix.php-versions }}
version: 9.6
#vendored_phpunit_path: vendor/bin/phpunit
- name: coverage monitor
uses: slavcodev/coverage-monitor-action@1.10.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_path: test/clover.xml
comment_footer: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # require for private repo
files: test/clover.xml
name: github-ci
verbose: true
# - name: phpunit-coverage-badge
# uses: timkrase/phpunit-coverage-badge@v1.2.0
# with:
# report: test/clover.xml
# coverage_badge_path: test/coverage.svg
# push_badge: true
# repo_token: ${{ secrets.GITHUB_TOKEN }}