Skip to content

Merge pull request #9 from feature-ninja/dependabot/github_actions/co… #18

Merge pull request #9 from feature-ninja/dependabot/github_actions/co…

Merge pull request #9 from feature-ninja/dependabot/github_actions/co… #18

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: xdebug
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
uses: ramsey/composer-install@v3
- name: List Installed Dependencies
run: composer show -D
- name: Execute tests
run: vendor/bin/phpunit
env:
XDEBUG_MODE: coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.xml
verbose: true