summaryrefslogtreecommitdiff
path: root/.github/workflows/builds.yml
diff options
context:
space:
mode:
authorJulien Voisin2021-01-10 11:26:56 +0000
committerGitHub2021-01-10 12:26:56 +0100
commit1f0a382152933feec3184f0e8dc00ae4b89cd743 (patch)
treeda4e6acedafbfd2a2f094fc93c09ed79b7e49ac6 /.github/workflows/builds.yml
parent24adfe998dd35229997923ecad0df11903bbc252 (diff)
Use github action for the CI (#373)
Diffstat (limited to '.github/workflows/builds.yml')
-rw-r--r--.github/workflows/builds.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml
new file mode 100644
index 0000000..67c1135
--- /dev/null
+++ b/.github/workflows/builds.yml
@@ -0,0 +1,32 @@
1name: CI for php versions
2on: ['pull_request', 'push']
3
4jobs:
5 ci:
6 runs-on: ubuntu-latest
7 strategy:
8 matrix:
9 container:
10 - php:7.0
11 - php:7.1
12 - php:7.2
13 - php:7.3
14 - php:7.4
15 - php:8.0
16 container: ${{ matrix.container }}
17 steps:
18 - name: Checkout code
19 uses: actions/checkout@v2
20 - name: Install pecl
21 if: startsWith(matrix.container, 'php:7')
22 run: pecl install vld-beta
23 - name: Remove php8 tests on php7
24 if: startsWith(matrix.container, 'php:7')
25 run: rm -rf src/tests/*php8*/
26 - name: Build and run the testsuite
27 run: make tests
28 - name: Show logs in case of failure
29 if: ${{ failure() }}
30 run: |
31 grep -r . ./src/tests/*/*.out
32 grep -r . ./src/tests/*/*.diff