Skip to content

ci: use cobertura instead of clover and update phpunit (#13) #5

ci: use cobertura instead of clover and update phpunit (#13)

ci: use cobertura instead of clover and update phpunit (#13) #5

Workflow file for this run

on:
push:
branches:
- master
name: Release
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: "${{ runner.os }}-${{ hashFiles('**/composer.lock') }}"
- name: Install Composer
uses: php-actions/composer@v6
- name: Run PHPUnit
run: php -d xdebug.mode=coverage ./vendor/bin/phpunit
- name: Make Coverage Badge
uses: action-badges/cobertura-coverage-xml-badges@0.3.0
with:
file-name: coverage.svg
badge-branch: gh-pages
coverage-file-name: tests/coverage.latest/coverage.xml
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Execute Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}