Skip to content

chore/package-update #7

chore/package-update

chore/package-update #7

Workflow file for this run

name: Tests
on: [pull_request, workflow_dispatch]
jobs:
test:
# not self-hosted, because it's a public repo
runs-on: ubuntu-latest
# we want to run it on combination of PHP and Laravel versions
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3']
laravel: ['^10.0', '^11.0', '^12.0']
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: zip, gd, sqlite, json, gmp, bcmath
coverage: none
- name: Ensure we use specific version of Laravel, and install other dependencies
env:
LARAVEL_VERSION: ${{ matrix.laravel }}
run: composer require laravel/framework $LARAVEL_VERSION --no-interaction --no-scripts --prefer-dist
- name: Execute tests
run: vendor/bin/phpunit