mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:34:03 +00:00
* Laravel 12 support * Drop Laravel 9 support, update CI matrix * run tests on PHP 8.3
34 lines
796 B
YAML
34 lines
796 B
YAML
name: CI
|
|
|
|
env:
|
|
COMPOSE_INTERACTIVE_NO_CLI: 1
|
|
|
|
on:
|
|
push:
|
|
branches: [ 3.x ]
|
|
pull_request:
|
|
branches: [ 3.x ]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- laravel: 10
|
|
php: "8.1"
|
|
- laravel: 11
|
|
php: "8.3"
|
|
- laravel: 12
|
|
php: "8.3"
|
|
# Ideally we'd run at least one of these on PHP 8.4, however the Dockerfile seems to require some changes for that
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Start docker containers
|
|
run: PHP_VERSION=${{ matrix.php }} docker compose up -d
|
|
- name: Install dependencies
|
|
run: docker compose exec -T test composer require --no-interaction "laravel/framework:^${{ matrix.laravel }}.0"
|
|
- name: Run tests
|
|
run: ./test
|