Skip to content

fix tests and docus #61

fix tests and docus

fix tests and docus #61

Workflow file for this run

name: Upload Codecov
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout submodules
run: |
git submodule init
git submodule update
- name: Install pcov
run: |
cd ~ && git clone --depth=1 https://github.com/krakjoe/pcov.git
cd pcov && phpize
./configure --enable-pcov
make
sudo make install
- name: Show PHP Info
run: php -i
- name: Enable pcov
run: echo 'extension=pcov.so' | sudo tee $(php -i | grep -i 'Scan this dir for additional .ini files' | cut -d" " -f9)/20-pcov.ini
- name: Install latest PHPUnit
run: wget https://phar.phpunit.de/phpunit-10.1.1.phar
- name: Run Codecov
run: php phpunit-10.1.1.phar --coverage-clover=coverage.xml tests --configuration tests/phpunit.xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml