Skip to content

Commit b3f441c

Browse files
Add github action check integration tests
1 parent 105115b commit b3f441c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "*"
10+
schedule:
11+
- cron: '0 0 * * *'
12+
13+
jobs:
14+
php-laravel-integration-tests:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
env:
18+
COMPOSER_NO_INTERACTION: 1
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
php: [8.4, 8.3, 8.2, 8.1]
23+
laravel: [11.*, 10.*, 9.*, 8.*, 7.*]
24+
exclude:
25+
- laravel: 11.*
26+
php: 8.1
27+
- laravel: 9.*
28+
php: 8.4
29+
- laravel: 8.*
30+
php: 7.4
31+
- laravel: 7.*
32+
php: 7.2
33+
name: P${{ matrix.php }} - Laravel${{ matrix.laravel }}
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
with:
38+
path: src
39+
40+
- name: Setup PHP
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ matrix.php }}
44+
coverage: none
45+
tools: composer:v2
46+
47+
- name: Install dependencies
48+
run: |
49+
composer create-project --prefer-dist laravel/laravel:${{ matrix.laravel }} --stability=dev --no-progress sample
50+
cd sample
51+
composer config minimum-stability dev
52+
composer update --prefer-stable --prefer-dist --no-progress
53+
- name: Add package from source
54+
run: |
55+
cd sample
56+
sed -e 's|"type": "project",|&\n"repositories": [ { "type": "path", "url": "../src" } ],|' -i composer.json
57+
composer require "prettus/l5-repository:*"

0 commit comments

Comments
 (0)