From 67edbec4cd01dea6d07fcbdee0d69a62a5ab1238 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Wed, 5 Jan 2022 19:22:14 +0100 Subject: better github build script --- .github/workflows/builds.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index f01923e..6d22bf3 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -11,23 +11,21 @@ jobs: - php:8.0 - php:7.4 - php:7.3 - - php:7.2 - # - php:7.1 - # - php:7.0 container: ${{ matrix.container }} steps: - name: Checkout code uses: actions/checkout@v2 - - name: Install pecl + - name: PHP 7 env setup 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*/ + run: | + pecl install vld-beta + rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt - name: Build and run the testsuite - run: make tests + 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 . ./src/tests/*/*.out - grep -r . ./src/tests/*/*.diff + grep -r . --include='*.log' src/tests -- cgit v1.3