Skip to content

tests

tests #1531

Workflow file for this run

name: tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0]
laravel: [8.*]
stability: [prefer-lowest, prefer-stable]
name:
p ${{ matrix.php }} - l ${{ matrix.laravel }} - ${{ matrix.stability
}}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key:
dependencies-laravel-${{ matrix.laravel }}-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, soap, intl, gd, exif, iconv, imagick
tools: composer:v2
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Run PHP tests via PHPUnit
run: vendor/bin/phpunit