-
-
Notifications
You must be signed in to change notification settings - Fork 299
47 lines (40 loc) 路 1.56 KB
/
Copy pathtest.yaml
File metadata and controls
47 lines (40 loc) 路 1.56 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
40
41
42
43
44
45
46
47
name: Unit Tests
on:
pull_request: ~
push:
branches:
- master
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.4', '8.5']
dependency-version: [prefer-lowest, prefer-stable]
composer-version: [ v2 ]
exclude:
- dependency-version: prefer-lowest
php: '8.4'
name: ${{ matrix.php }} - Composer ${{ matrix.composer-version }} --${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.composer-version }}
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
extensions: dom, mbstring, zip, xml
coverage: none
tools: composer:${{ matrix.composer-version }}
- name: Install Composer dependencies
run: composer update --${{ matrix.dependency-version }} --ansi --no-interaction --prefer-dist
- name: Unit Tests
run: vendor/bin/phpunit