Skip to content

Commit

Permalink
Adjust dependencies for Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Friars committed Oct 19, 2024
1 parent 5bc3510 commit 6007ac8
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,57 @@ name: Tests
on: [push, pull_request]

jobs:
test:
test-9:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
laravel: [^9, ^10, ^11]
php: [8.1]
laravel: [^9]
stability: [prefer-lowest, prefer-stable]


name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} - Laravel ${{ matrix.laravel }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v4
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, fileinfo
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest

test-10-11:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3]
laravel: [^10, ^11]
stability: [prefer-lowest, prefer-stable]


Expand Down Expand Up @@ -47,7 +90,7 @@ jobs:
run: vendor/bin/pest

coverage:
needs: [test]
needs: [test-9, test-10-11]
name: coverage
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 6007ac8

Please sign in to comment.