Skip to content

Merge branch 'main' into statamic-4.0 #542

Merge branch 'main' into statamic-4.0

Merge branch 'main' into statamic-4.0 #542

Workflow file for this run

name: Run Tests
on:
push:
pull_request:
jobs:
php-tests:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: [8.0, 8.1]
laravel: [8.*]
statamic: [3.2.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-20.04]
include:
- laravel: 8.*
framework: ^8.80
testbench: ^6.0
name: P${{ matrix.php }} - S${{ matrix.statamic }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v1
- 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
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.framework }}" "statamic/cms:${{ matrix.statamic }}" "orchestra/testbench:${{ matrix.testbench }}" ${{ matrix.additional-deps }} --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit