Add possibility to call custom endpoints #265
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
name: PHP Unit | |
jobs: | |
Unit: | |
runs-on: ubuntu-latest | |
env: | |
XDEBUG_MODE: coverage | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run unit tests | |
run: vendor/bin/phpunit --testsuite unit | |
#- name: Generate code coverage | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# files: phpunit.cobertura.xml | |
- name: Generate code coverage report | |
uses: irongut/[email protected] | |
with: | |
format: markdown | |
filename: phpunit.cobertura.xml | |
badge: true | |
output: both | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: github.event_name == 'pull_request' | |
with: | |
recreate: true | |
path: code-coverage-results.md |