-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.13 KB
/
php.yml
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
name: PHP (Nette Tester)
on: [ push, pull_request ]
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: ['8.1','8.2','8.3']
steps:
- uses: actions/checkout@v2
name: Checkout
with:
submodules: recursive
- uses: shivammathur/setup-php@v2
name: Setup PHP
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, mysql, soap, xml
tools: composer
ini-values: session.gc_probability=0, date.timezone="Europe/Prague", display_startup_errors = Off
- name: Composer install
run: composer install --no-progress --prefer-dist
- uses: actions/setup-python@v4
name: Setup Python
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r tests/api/requirements.txt
name: Pip install
- run: composer run-script test
name: Test
- if: failure()
name: Failure output
uses: actions/upload-artifact@v2
with:
name: output
path: tests/**/*.actual