1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 01:00:09 +01:00
Files
laravel-valet/.github/workflows/tests.yml
Miguel Piedrafita 5e43cf872a wip
2020-11-03 15:29:45 +00:00

42 lines
924 B
YAML

name: Tests
on:
push:
pull_request:
jobs:
mac_tests:
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, fileinfo
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
if: matrix.php != 8.0
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
if: matrix.php == 8.0
- name: Execute tests
env:
APP_ENV: testing
run: vendor/bin/phpunit --verbose