Skip to content

Commit

Permalink
ci: run code coverage in GA (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Jan 17, 2021
1 parent 8ba16a6 commit fcfb12b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 42 deletions.
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "code coverage"

on: ["pull_request", "push"]

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"
run: "composer install --no-interaction --no-progress --ignore-platform-req php"

- name: "running unit tests ( phpunit )"
run: "php vendor/bin/phpunit"

- name: "sending code coverage to coveralls"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls -x tests/logs/clover.xml -o tests/logs/coveralls-upload.json -v
9 changes: 0 additions & 9 deletions .stickler.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"php-coveralls/php-coveralls": "^2.4",
"friendsofphp/php-cs-fixer": "^2.17",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5",
Expand Down

0 comments on commit fcfb12b

Please sign in to comment.