Skip to content

Laravel Tests

Laravel Tests #264

Workflow file for this run

name: 'Laravel Tests'
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
tests-on-php71:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.4, 7.3, 7.2, 7.1]
name: PHP${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath
coverage: none
- name: Install dependencies
run: |
composer install --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit