-
Notifications
You must be signed in to change notification settings - Fork 268
42 lines (34 loc) · 955 Bytes
/
Copy pathtest.yml
File metadata and controls
42 lines (34 loc) · 955 Bytes
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
name: Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lowest: ['0', '1']
php-versions: ['8.1', '8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-php${{ matrix.php-versions }}-lowest${{ matrix.lowest }}-${{ hashFiles('**/composer.json') }}
- name: Install dependencies
uses: php-actions/composer@v6
env:
COMPOSER_PREFER_LOWEST: ${{ matrix.lowest }}
with:
command: install
args: --prefer-dist --no-progress --verbose
php_version: ${{ matrix.php-versions }}
- name: Run tests
run: make test