forked from jacquestvanzuydam/laravel-firebird
-
Notifications
You must be signed in to change notification settings - Fork 32
51 lines (43 loc) · 1.35 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Tests
on:
[push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2]
laravel: [11.*]
stability: [prefer-lowest, prefer-stable]
firebird: [v5.0, v4.0, v3.0, v2.5.9-sc]
include:
- laravel: 11.*
testbench: ^9.0
fail-fast: false
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, Firebird ${{ matrix.firebird }}, ${{ matrix.stability }}
services:
firebird:
image: jacobalberty/firebird:${{ matrix.firebird }}
env:
FIREBIRD_DATABASE: 'database.fdb'
ISC_PASSWORD: 'masterkey'
EnableLegacyClientAuth: 'true'
ports:
- 3050:3050
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pdo_firebird
tools: composer:v2
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Run tests
run: vendor/bin/phpunit