Update README and LINCESE #6
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
name: Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Install PHP dependencies | |
run: composer install | |
- name: Prepare code coverage | |
run: mkdir -p ~/phpunit | |
- name: Run PHP tests | |
run: ./vendor/bin/phpunit --log-junit ~/phpunit/junit.xml --coverage-clover=coverage.xml | |
- name: Run codecov | |
run: bash <(curl -s https://codecov.io/bash) |