-
-
Notifications
You must be signed in to change notification settings - Fork 9
70 lines (58 loc) · 1.83 KB
/
run-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI tests
on:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: 0 6 * * 4
env:
DB_ENDPOINT: 'http://localhost:8529'
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
arangodb: ['3.11', '3.12']
php: ['8.2', '8.3', '8.4']
laravel: ['^11.0']
include:
- laravel: '^11.0'
testbench: '^9.0'
name: QA L ${{ matrix.laravel }} / P ${{ matrix.php }} / A ${{ matrix.arangodb }} - ${{ matrix.dependency-version }}
services:
arangodb:
image: arangodb:${{ matrix.arangodb }}
ports:
- 8529:8529
env:
ARANGO_NO_AUTH: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.json') }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
tools: composer:v2
- name: Install dependencies
run: |
composer require laravel/framework:${{ matrix.laravel }} orchestra/testbench:${{ matrix.testbench }} --no-interaction --no-update
composer update --prefer-dist --no-interaction
- name: Prepare test database
run: |
chmod +x "${GITHUB_WORKSPACE}/bin/prepare-test-db.sh"
"${GITHUB_WORKSPACE}/bin/prepare-test-db.sh"
- name: Run all QA tests
run: |
chmod +x "${GITHUB_WORKSPACE}/bin/qa.sh"
"${GITHUB_WORKSPACE}/bin/qa.sh"
env:
ARANGODB_VERSION: ${{ matrix.arangodb }}