blob: 6d22bf3a86fe0e2c9239fa38c04bd1123532fb05 (
plain)
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
|
name: CI for php versions
on: ['pull_request', 'push']
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
container:
- php:8.1
- php:8.0
- php:7.4
- php:7.3
container: ${{ matrix.container }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: PHP 7 env setup
if: startsWith(matrix.container, 'php:7')
run: |
pecl install vld-beta
rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt
- name: Build and run the testsuite
run: |
make release
ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/
make tests
- name: Show logs in case of failure
if: ${{ failure() }}
run: |
grep -r . --include='*.log' src/tests
|