From 654552c14ba8c98a244f82f9b8f1225a68526efb Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Thu, 25 Mar 2021 18:55:27 +0000 Subject: Add PHP8 for linux distributions on the CI --- .github/workflows/distributions_php8.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/distributions_php8.yml (limited to '.github') diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml new file mode 100644 index 0000000..f055499 --- /dev/null +++ b/.github/workflows/distributions_php8.yml @@ -0,0 +1,32 @@ +name: CI for linux distributions, on php8 +on: ['pull_request', 'push'] + +jobs: + alpine: + runs-on: ubuntu-latest + container: alpine:edge + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Remove php7 tests for php8 + run: rm -rf src/tests/*php7*/ + - name: Remove tests failing on alpine for wathever reason + run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ + - name: Install dependencies + run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl + - name: Install pecl + continue-on-error: true + run: pecl install vld-beta + - name: Link phpize + run: ln -s /usr/bin/phpize8 /usr/bin/phpize + - name: Link php-config + run: ln -s /usr/bin/php-config8 /usr/bin/php-config + - name: Build and run the testsuite + continue-on-error: true + run: make tests + - name: Show logs in case of failure + if: ${{ failure() }} + continue-on-error: true + run: | + grep -r . ./src/tests/*/*.out + grep -r . ./src/tests/*/*.diff -- cgit v1.3