Skip to content

Merge pull request #33 from laravel-shift/l11-compatibility #37

Merge pull request #33 from laravel-shift/l11-compatibility

Merge pull request #33 from laravel-shift/l11-compatibility #37

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
jobs:
PHPUnit:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 8.2
- 8.1
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@develop
with:
php-version: ${{ matrix.php }}
- run: php -v
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Create Database
run: |
touch tests/vendor/temp/database.sqlite
chmod 775 tests/vendor/temp/database.sqlite
- name: Run tests
run: vendor/bin/phpunit --coverage-clover tests/vendor/temp/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: tests/vendor/temp/coverage.xml