-
Notifications
You must be signed in to change notification settings - Fork 85
44 lines (35 loc) · 1.04 KB
/
test.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
name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [7.4, 8.0, 8.1]
laravel_version: [8.*, 9.*]
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
- name: Validate composer.json
run: composer validate
- name: Run composer install
run: composer install --no-interaction --no-suggest
- name: Run find-and-replace to replace * with 0
uses: mad9000/actions-find-and-replace-string@1
id: laravel_version_cleaned
with:
source: ${{ matrix.laravel_version }}
find: '*'
replace: '0'
- name: Install Laravel
run: composer update --no-interaction illuminate/database:^${{ steps.laravel_version_cleaned.outputs.value }}
- name: Run PHPUnit
run: ./vendor/bin/phpunit