forked from victorycodedev/metaapi-cloud-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1003 Bytes
/
run-test.yml
File metadata and controls
36 lines (29 loc) · 1003 Bytes
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
name: run-tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
prefer: [lowest, stable]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-php${{ matrix.php }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: xdebug
- name: Install dependencies
run: composer update --prefer-${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
- name: Execute test
run: vendor/bin/phpunit