-
Notifications
You must be signed in to change notification settings - Fork 197
60 lines (59 loc) · 1.98 KB
/
Copy pathtests.yml
File metadata and controls
60 lines (59 loc) · 1.98 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
name: Test Suite
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{matrix.operating-system}}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ 7.1, 7.2, 7.3, 7.4, "8.0" ]
name: PHP ${{matrix.php }} Unit Test
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- if: ${{ matrix.php != '8.0' }}
name: Install Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
max_attempts: 3
command: composer install
- if: ${{ matrix.php == '8.0' }}
name: Install Dependencies (PHP 8.0)
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
max_attempts: 3
command: |
composer remove --dev --ignore-platform-reqs phpunit/phpunit
composer require --dev --ignore-platform-reqs --update-with-all-dependencies phpunit/phpunit:^7
- name: Run Script
run: vendor/bin/phpunit
test_lowest:
runs-on: ${{matrix.operating-system}}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ 7.1 ]
name: PHP ${{matrix.php }} Unit Test Prefer Lowest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 10
max_attempts: 3
command: composer update --prefer-lowest
- name: Run Script
run: vendor/bin/phpunit