forked from schmittjoh/object-routing
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.36 KB
/
tests.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
name: Tests
on:
push:
branches:
- master
pull_request:
env:
SYMFONY_DEPRECATIONS_HELPER: weak
jobs:
PHPUnit:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { php-version: 8.1, dependency-version: prefer-lowest }
- { php-version: 8.2, dependency-version: prefer-stable }
- { php-version: 8.3, dependency-version: prefer-stable }
name: PHPUnit (PHP ${{matrix.php-version}}, ${{ matrix.dependency-version }})
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- uses: actions/cache@v4
with:
path: vendor
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.dependency-version }}-
- run: composer update --${{ matrix.dependency-version }} --no-interaction --no-scripts --no-progress --ansi
- run: composer show
- run: vendor/bin/phpunit