From 1f0a382152933feec3184f0e8dc00ae4b89cd743 Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Sun, 10 Jan 2021 11:26:56 +0000 Subject: Use github action for the CI (#373) --- .github/workflows/builds.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/builds.yml (limited to '.github/workflows/builds.yml') 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 @@ +name: CI for php versions +on: ['pull_request', 'push'] + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + container: + - php:7.0 + - php:7.1 + - php:7.2 + - php:7.3 + - php:7.4 + - php:8.0 + container: ${{ matrix.container }} + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Install pecl + if: startsWith(matrix.container, 'php:7') + run: pecl install vld-beta + - name: Remove php8 tests on php7 + if: startsWith(matrix.container, 'php:7') + run: rm -rf src/tests/*php8*/ + - name: Build and run the testsuite + run: make tests + - name: Show logs in case of failure + if: ${{ failure() }} + run: | + grep -r . ./src/tests/*/*.out + grep -r . ./src/tests/*/*.diff -- cgit v1.3