Skip to content

Merge pull request #4 from brokeyourbike/release-v0.1.1 #10

Merge pull request #4 from brokeyourbike/release-v0.1.1

Merge pull request #4 from brokeyourbike/release-v0.1.1 #10

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
laravel-tests:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
php-version: [7.4,8.0]
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: pcov
- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v3
continue-on-error: true
with:
files: ./coverage.xml
- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v4
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
with:
coverageCommand: ''
coverageLocations: ./coverage.xml:clover