Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mechelon committed Dec 15, 2023
1 parent 59cb43c commit 3640782
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,44 @@ on:
branches: [master]

jobs:
test:
runs-on: ${{ matrix.os }}
php-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [7.4, 8.0, 8.1]
laravel: [8.*, 10.*]
exclude:
- php: 7.4
laravel: 10.*
- php: 7.4
laravel: 9.*
php:
- '8.3'
- '8.2'
- '8.1'
- '8.0'
laravel:
- '10.*'
- '9.*'
- '8.*'
dependency-version:
- 'prefer-stable'
include:
- laravel: 10.*
testbench: ^8.0
- laravel: 8.*
testbench: ^6.6
- laravel: '10.*'
php: '8.3'
testbench: '8.*'
- laravel: '10.*'
php: '8.2'
testbench: '8.*'
- laravel: '9.*'
php: '8.2'
testbench: '7.*'
- laravel: '9.*'
php: '8.1'
testbench: '7.*'
- laravel: '8.*'
php: '8.0'
testbench: '6.*'
- laravel: '8.*'
php: '8.1'
testbench: '6.*'

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -36,18 +54,13 @@ jobs:
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
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
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 "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit

0 comments on commit 3640782

Please sign in to comment.