Repository navigation
59 lines (48 loc) · 1.64 KB
/
Copy pathtests.yml
File metadata and controls
59 lines (48 loc) · 1.64 KB
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
name: "Tests"
permissions:
contents: read
on:
push:
branches:
- main
- 6.x
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
name: PHPUnit Tests
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
php-version: [8.3, 8.4, 8.5]
laravel-version: ["12.*", "13.*"]
include:
- php-version: 8.5
laravel-version: "13.*"
coverage: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ matrix.php-version }}
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
- name: Lock laravel/framework version
run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update
- name: Install dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
dependency-versions: highest
custom-cache-suffix: ${{ matrix.php-version }}-${{ matrix.laravel-version }}
- name: Run test suites
run: composer run-script ${{ matrix.coverage && 'test-with-coverage' || 'test' }}
- name: Upload coverage to Coveralls
if: matrix.coverage
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
file: build/logs/clover.xml