-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 1.24 KB
/
test.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
42
43
44
name: 'Tests'
on:
push:
branches:
- master
pull_request:
jobs:
tests:
name: 'Tests'
strategy:
matrix:
php: ['8.3.0', '8.2.0', '8.1.0', '8.0.0', '7.4.0', '7.3.0', '7.2.0', '7.1.0', '7.0.0']
os: ['ubuntu-20.04']
include:
- php: '8.1.0'
os: 'ubuntu-20.04'
memcheck: '1'
runs-on: ${{ matrix.os }}
continue-on-error: ${{ !!matrix.experimental }}
env:
PHP_VERSION: ${{ matrix.php }}
MEMORY_CHECK: ${{ matrix.memcheck }}
steps:
- name: 'Check out repository'
uses: 'actions/checkout@v2'
with:
path: 'php-inotify'
- uses: actions/cache@v2
with:
path: ~/build-cache/php
key: ${{ matrix.os }}-${{ matrix.php }}-${{ matrix.memcheck }}
- name: 'Build PHP'
run: './php-inotify/.github/workflows/test/build-php.sh'
- name: 'Build php-inotify'
run: './php-inotify/.github/workflows/test/build-php-inotify.sh'
- name: 'Run tests'
run: './php-inotify/.github/workflows/test/tests.sh'