-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (30 loc) · 1.1 KB
/
ci.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
name: CI
on: [push, pull_request]
env:
php-options: -C -d opcache.enable=0 -d zend.exception_ignore_args=0
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['8.0', '8.1', '8.2', '8.3']
sapi: ['php', 'php-cgi']
fail-fast: false
name: PHP ${{ matrix.php }}/${{ matrix.sapi }} tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester -C test/test.php -p ${{ matrix.sapi }} -s ${{ env.php-options }}
- run: cd .. && transit-php/bin/transit-format