1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:34:04 +00:00
tenancy/.github/workflows/ci.yml
2020-11-30 16:19:02 +01:00

48 lines
1 KiB
YAML

name: CI
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
php-images:
- "7.4":
- target=php:7.4-cli
- version=7.4
- "8.0":
- target=php:8.0.0RC5-cli
- version=8.0
on:
push:
branches: [ 3.x, 2.x, master ]
pull_request:
branches: [ 3.x, 2.x, master ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [
"7.4",
"8.0"
]
laravel: [
"^6.0",
"^7.0",
"^8.0"
]
steps:
- uses: actions/checkout@v2
- name: Start docker containers
run: PHP_TARGET=${{ php[matrix.php].target }} PHP_VERSINON=${{ php[matrix.php].version }} 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
- name: Send code coverage to codecov
env:
CODECOV_TOKEN: 24382d15-84e7-4a55-bea4-c4df96a24a9b
run: bash <(curl -s https://codecov.io/bash)