-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.06 KB
/
tests.yaml
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
name: Tests
on:
pull_request: null
push:
branches:
- main
schedule:
- cron: '0 6 * * *'
jobs:
tests:
name: "Tests @ PHP${{ matrix.php-version }} ${{ matrix.composer-flags }}"
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
composer-flags: [ "" ]
include:
- php-version: 7.4
composer-flags: "--prefer-lowest"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: pecl
extensions: bcmath,intl,mbstring
ini-values: memory_limit=640M
- name: "Install dependencies"
run: composer update --no-interaction --no-progress --no-scripts ${{ matrix.composer-flags }}
- name: "Tests"
run: composer phpunit -- --colors=always