Skip to content

Commit 25be708

Browse files
committed
feat: daily laravel compatability check
1 parent 6dc8476 commit 25be708

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/comaptibility.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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

0 commit comments

Comments
 (0)