Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Merge pull request #4 from glocurrency/release-v0.2.0 #9

Merge pull request #4 from glocurrency/release-v0.2.0

Merge pull request #4 from glocurrency/release-v0.2.0 #9

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: [8.1]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: pcov
- name: Install PHP dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v5
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
with:
coverageLocations: ./coverage.xml:clover