mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 07:54:03 +00:00
36 lines
798 B
YAML
36 lines
798 B
YAML
name: CI
|
|
|
|
env:
|
|
COMPOSE_INTERACTIVE_NO_CLI: 1
|
|
|
|
on:
|
|
push:
|
|
branches: [ 3.x, 2.x ]
|
|
pull_request:
|
|
branches: [ 3.x, 2.x ]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
php: ["8.0", "8.1"]
|
|
laravel: ["^9.0", "^10.0"]
|
|
include:
|
|
- laravel: "^9.0"
|
|
testbench: "^7.0"
|
|
- laravel: "^10.0"
|
|
testbench: "^8.0"
|
|
exclude:
|
|
- laravel: "^10.0"
|
|
php: "8.0"
|
|
|
|
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 }}"
|
|
- name: Run tests
|
|
run: ./test
|