Skip to content

Commit

Permalink
Run tests on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jun 26, 2024
1 parent af1bada commit 592f8a7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Suite

on:
push:
pull_request:

jobs:
php_tests:
if: "!contains(github.event.head_commit.message, 'changelog')"

runs-on: ${{ matrix.os }}

strategy:
matrix:
php: [8.3, 8.2]
laravel: [10.*, 11.*]
statamic: [^5.0]
os: [ubuntu-latest]

name: ${{ matrix.php }} - ${{ matrix.statamic }} - ${{ matrix.laravel }}

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

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "statamic/cms:${{ matrix.statamic }}" --no-interaction --no-update
composer install --no-interaction
- name: Run Pest
run: vendor/bin/pest

0 comments on commit 592f8a7

Please sign in to comment.