File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Laravel 11.x Compatability
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 0 0 * * *"
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ php : [8.2, 8.3]
15
+ laravel : [11.x-dev]
16
+ testbench : [9.*]
17
+
18
+ name : P${{ matrix.php }} - L${{ matrix.laravel }}
19
+
20
+ services :
21
+ postgres :
22
+ image : ankane/pgvector
23
+ env :
24
+ POSTGRES_PASSWORD : postgres
25
+ ports :
26
+ - 5432:5432
27
+ options : >-
28
+ --health-cmd pg_isready
29
+ --health-interval 10s
30
+ --health-timeout 5s
31
+ --health-retries 5
32
+
33
+ steps :
34
+ - name : Checkout code
35
+ uses : actions/checkout@v2
36
+
37
+ - name : Setup PHP
38
+ uses : shivammathur/setup-php@v2
39
+ with :
40
+ php-version : ${{ matrix.php }}
41
+ extensions : fileinfo, pdo
42
+ coverage : xdebug
43
+
44
+ - name : Setup problem matchers
45
+ run : |
46
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
47
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
48
+
49
+ - name : Install dependencies
50
+ run : |
51
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction
52
+
53
+ - name : Execute tests
54
+ run : vendor/bin/phpunit
55
+ env :
56
+ DB_HOST : localhost
57
+ DB_DATABASE : postgres
58
+ DB_USERNAME : postgres
59
+ DB_PASSWORD : postgres
You can’t perform that action at this time.
0 commit comments