-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1.18 KB
/
Copy pathtests.yml
File metadata and controls
48 lines (37 loc) · 1.18 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
48
name: Unit Tests
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
dependency-versions: ["highest", "lowest"]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gmp
coverage: xdebug
- name: Configure Composer platform
run: composer config platform.php ${{ matrix.php-versions }}
- name: Install dependencies
run: |
if [ "${{ matrix.dependency-versions }}" = "lowest" ]; then
composer update --prefer-lowest --prefer-stable --no-interaction
else
composer update --prefer-stable --no-interaction
fi
- name: Run linter
run: make lint
- name: Run unit tests
run: make unit
- name: Run static analysis
run: make static
- name: Upload coverage
uses: codecov/codecov-action@v6