Skip to content

Commit

Permalink
Merge pull request #4 from rudashi/dev
Browse files Browse the repository at this point in the history
Added codacy-coverage workflow
  • Loading branch information
rudashi authored May 29, 2024
2 parents 6270b85 + 79ede5a commit aee7377
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/codacy-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Codacy Coverage Report

on:
push:
branches: [ "dev" ]
schedule:
- cron: '32 5 * * 0'

permissions:
contents: read

jobs:
build-coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install composer and dependencies
uses: php-actions/composer@v6

- name: Execute tests (Unit and Feature tests) via PestPHP
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/pest --coverage-clover ./clover.xml

- name: Codacy Coverage Reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./clover.xml

0 comments on commit aee7377

Please sign in to comment.