forked from matomo-org/matomo-php-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.02 KB
/
Copy pathphpunit.yml
File metadata and controls
44 lines (41 loc) · 1.02 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
name: PHPUnit
on:
pull_request:
push:
branches: [ master ]
permissions:
actions: read
checks: read
contents: read
deployments: none
issues: read
packages: none
pull-requests: read
repository-projects: none
security-events: none
statuses: none
jobs:
build:
name: PHPUnit
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
extensions: curl
- name: "Composer install"
run: |
composer install --prefer-dist
- name: PHPUnit / PHP ${{ matrix.php-version }}
run: |
php -v
./vendor/bin/phpunit