2021-01-17 17:02:29 +01:00
|
|
|
name: "code coverage"
|
|
|
|
|
2021-03-24 09:23:04 +01:00
|
|
|
on:
|
|
|
|
pull_request: ~
|
|
|
|
push: ~
|
2021-01-17 17:02:29 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
code-coverage:
|
|
|
|
name: "code coverage"
|
|
|
|
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "checkout"
|
|
|
|
uses: "actions/checkout@v2"
|
|
|
|
|
|
|
|
- name: "installing PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
php-version: "8.0"
|
|
|
|
ini-values: memory_limit=-1
|
|
|
|
tools: composer:v2, cs2pr
|
|
|
|
extensions: bcmath, mbstring, intl, sodium, json
|
|
|
|
|
|
|
|
- name: "installing dependencies"
|
2021-03-27 21:32:45 +01:00
|
|
|
run: |
|
|
|
|
make install-root-dependencies
|
|
|
|
make install-unit-tests-dependencies
|
2021-01-17 17:02:29 +01:00
|
|
|
|
|
|
|
- name: "sending code coverage to coveralls"
|
|
|
|
env:
|
|
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-03-27 21:32:45 +01:00
|
|
|
run: make code-coverage
|