-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.12 KB
/
Copy pathtests.yml
File metadata and controls
39 lines (31 loc) · 1.12 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
name: Tests
on:
push:
pull_request:
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
include:
- php: '8.4'
without-intl: true
name: PHP ${{ matrix.php }}${{ matrix.without-intl && ' (no intl)' || '' }}
steps:
- uses: actions/checkout@v7
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.without-intl && ':intl' || 'intl' }}
coverage: none
# Laravel (and therefore Testbench) requires PHP 8.2+; on 8.1 the
# Laravel integration tests are skipped automatically.
- name: Remove Testbench on PHP 8.1
if: matrix.php == '8.1'
run: composer remove --dev orchestra/testbench --no-update
- run: composer update --prefer-dist --no-interaction --no-progress
# On 8.1 the Laravel suite cannot even be loaded (Testbench is not
# installed), so only the Core suite is run there.
- run: vendor/bin/phpunit --no-progress ${{ matrix.php == '8.1' && '--testsuite Core' || '' }}