-
-
Notifications
You must be signed in to change notification settings - Fork 178
64 lines (52 loc) · 1.59 KB
/
Copy pathtests.yml
File metadata and controls
64 lines (52 loc) · 1.59 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Tests
on: [pull_request]
permissions: {}
jobs:
tests:
name: Run PHP Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3']
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install mupdf and imagemagick
run: sudo apt-get install mupdf-tools imagemagick
- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi
- name: Run phpunit
run: |
./vendor/bin/phpunit
testsPhp74and8:
name: Run PHP Unit tests (>= 7.4)
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install mupdf and imagemagick
run: sudo apt-get install mupdf-tools imagemagick
- name: Install php
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
- name: Upgrade phpunit
run: composer require --dev --with-all-dependencies "phpunit/phpunit=^9.0"
- name: Install dependencies
run: composer update --dev --no-interaction --prefer-dist --no-progress --no-suggest --ansi
- name: Run phpunit
run: |
./vendor/bin/phpunit