Skip to content

chore: add phpunit cache to gitignore #32

chore: add phpunit cache to gitignore

chore: add phpunit cache to gitignore #32

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
laravel: ['10.*', '11.*']
include:
- laravel: 10.*
testbench: 8.*
phpunit: 10.*
- laravel: 11.*
testbench: 9.*
phpunit: '8.2'
exclude:
- laravel: 11.*
php: 8.1
name: PHP v${{ matrix.php }} - Laravel v${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv, gd
coverage: pcov
- name: Install dependencies
run: |
composer validate
composer self-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer install --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
env:
APP_DEBUG: ${{ secrets.APP_DEBUG }}
APP_ENV: ${{ secrets.APP_ENV }}
APP_KEY: ${{ secrets.APP_KEY }}
APP_LOG_LEVEL: ${{ secrets.APP_LOG_LEVEL }}
APP_NAME: ${{ secrets.APP_NAME }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
CLOUDINARY_SECURE: ${{ secrets.CLOUDINARY_SECURE }}
FILESYSTEM_CLOUD: ${{ secrets.FILESYSTEM_CLOUD }}
FILESYSTEM_DISK: ${{ secrets.FILESYSTEM_DISK }}
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true