-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (29 loc) · 1 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
name: Tests
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '10 6 * * 1'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: [ '7.2', '7.4', '8.1', '8.2', '8.3', '8.4' ]
dependency-version: [ prefer-stable ]
include:
- { php-version: '7.2', dependency-version: prefer-lowest }
name: PHP ${{ matrix.php-version }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer update --no-interaction --prefer-dist --${{ matrix.dependency-version}} --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/phpunit