Skip to content

Commit

Permalink
Merge pull request #32 from duncanmcclean/github-actions-test-workflow
Browse files Browse the repository at this point in the history
GitHub Actions workflow for running tests
  • Loading branch information
JohnathonKoster authored Apr 4, 2024
2 parents 43d3050 + fe02e70 commit 384bfc1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test Suite

on:
push:
pull_request:

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

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

name: ${{ matrix.php }} - ${{ 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 }}" --no-interaction --no-update
composer install --no-interaction
- name: Run PHPUnit
run: vendor/bin/phpunit

0 comments on commit 384bfc1

Please sign in to comment.