Skip to content

Merge pull request #29 from o0h/dependabot/composer/phpunit/phpunit-1… #84

Merge pull request #29 from o0h/dependabot/composer/phpunit/phpunit-1…

Merge pull request #29 from o0h/dependabot/composer/phpunit/phpunit-1… #84

Workflow file for this run

name: phpunit
on: push
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer
- name: Composer Install
run: composer install
- name: Run phpunit
run: composer test-unit -- --coverage-clover=coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer, cs2pr
coverage: none
- name: Composer Install
run: composer install
- name: Run phpunit
run: composer test-integration