Skip to content

chore: fix codecov action version #72

chore: fix codecov action version

chore: fix codecov action version #72

Workflow file for this run

name: tests
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
schedule:
- cron: '0 0 10 * *'
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2, 8.3 ]
laravel: [ 9, 10, 11 ]
exclude:
- php: 8.3
laravel: 9
- php: 8.1
laravel: 11
name: PHP ${{ matrix.php }} - Laravel v${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
ini-values: error_reporting=E_ALL
coverage: pcov
- name: Install dependencies
run: |
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: composer test:coverage
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false