Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
strategy:
strategy:
matrix:
php: ['7.2', '7.3', '7.4']
phpunit: ['8.0', '9.0']
Expand Down Expand Up @@ -44,27 +44,3 @@ jobs:

- name: Run unit tests
run: ./vendor/bin/phpunit --testdox

coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: 7.4
extensions: mbstring, intl, json
coverage: pcov

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.3.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
with:
coverageCommand: ./vendor/bin/phpunit --coverage-clover=clover.xml
debug: true
30 changes: 30 additions & 0 deletions .github/workflows/php_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit tests

on:
push:
branches:

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: 7.4
extensions: mbstring, intl, json
coverage: pcov

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.3.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
with:
coverageCommand: ./vendor/bin/phpunit --coverage-clover=clover.xml
debug: true