mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:44:04 +00:00
* Laravel 11 support * wip * trigger ci * fix ci file * try setting charset and collation on the default mysql connection * Set default cache driver to redis in tests * drop and recreate id column separately in autoincrement_ids_are_supported * set default redis client to predis in tests * revert fail-fast * try reverting TenantModelTest change * migrate phpunit configuration * add parent::tearDown() call
33 lines
670 B
YAML
33 lines
670 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: 9
|
|
php: "8.0"
|
|
- laravel: 10
|
|
php: "8.1"
|
|
- laravel: 11
|
|
php: "8.3"
|
|
|
|
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
|