forked from jakubkulhan/chrome-devtools-protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.59 KB
/
phpunit.yml
File metadata and controls
47 lines (38 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
name: "PHPUnit tests"
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1]
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, dom, curl, libxml, zip, pcntl, bcmath, intl, exif, iconv
coverage: none
- name: Setup Chrome
uses: abhi1693/setup-browser@v0.3.4
id: chrome
with:
browser: chrome
version: 1085317
- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: PHPUNIT_FLAGS="--log-junit /tmp/phpunit/junit.xml" make -e test
env:
CHROME_EXECUTABLE_PATH: ${{ steps.chrome.outputs.path }}/${{ steps.chrome.outputs.binary }}