diff options
| -rw-r--r-- | .github/workflows/distributions_php7.yml (renamed from .github/workflows/distributions.yml) | 24 | ||||
| -rw-r--r-- | .github/workflows/distributions_php8.yml | 84 |
2 files changed, 84 insertions, 24 deletions
diff --git a/.github/workflows/distributions.yml b/.github/workflows/distributions_php7.yml index 18a8cce..11222fb 100644 --- a/.github/workflows/distributions.yml +++ b/.github/workflows/distributions_php7.yml | |||
| @@ -119,27 +119,3 @@ jobs: | |||
| 119 | if: ${{ failure() }} | 119 | if: ${{ failure() }} |
| 120 | run: | | 120 | run: | |
| 121 | grep -r . --include='*.log' src/tests | 121 | grep -r . --include='*.log' src/tests |
| 122 | |||
| 123 | ## PHP 8 | ||
| 124 | alpine_php8: | ||
| 125 | runs-on: ubuntu-latest | ||
| 126 | container: alpine:edge | ||
| 127 | steps: | ||
| 128 | - name: Checkout code | ||
| 129 | uses: actions/checkout@v2 | ||
| 130 | - name: Remove tests failing on alpine for wathever reason | ||
| 131 | run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt | ||
| 132 | - name: Install dependencies | ||
| 133 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl php8-session php8-curl bash grep | ||
| 134 | - name: Install pecl | ||
| 135 | continue-on-error: true | ||
| 136 | run: pecl install vld-beta | ||
| 137 | - name: Build SP and run the testsuite | ||
| 138 | run: | | ||
| 139 | make release | ||
| 140 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 141 | make tests | ||
| 142 | - name: Show logs in case of failure | ||
| 143 | if: ${{ failure() }} | ||
| 144 | run: | | ||
| 145 | grep -r . --include='*.log' src/tests | ||
diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml index 04cc1ba..de912eb 100644 --- a/.github/workflows/distributions_php8.yml +++ b/.github/workflows/distributions_php8.yml | |||
| @@ -30,3 +30,87 @@ jobs: | |||
| 30 | run: | | 30 | run: | |
| 31 | grep -r . ./src/tests/*/*.out | 31 | grep -r . ./src/tests/*/*.out |
| 32 | grep -r . ./src/tests/*/*.diff | 32 | grep -r . ./src/tests/*/*.diff |
| 33 | |||
| 34 | debian: | ||
| 35 | runs-on: ubuntu-latest | ||
| 36 | container: debian:testing | ||
| 37 | steps: | ||
| 38 | - name: Checkout code | ||
| 39 | uses: actions/checkout@v2 | ||
| 40 | - name: Install dependencies | ||
| 41 | run: | | ||
| 42 | apt update | ||
| 43 | DEBIAN_FRONTEND=noninteractive apt install -y php-dev php-pear | ||
| 44 | - name: Install pecl | ||
| 45 | run: pecl install vld-beta | ||
| 46 | - name: Build and run the testsuite | ||
| 47 | run: make release tests | ||
| 48 | - name: Show logs in case of failure | ||
| 49 | if: ${{ failure() }} | ||
| 50 | run: | | ||
| 51 | grep -r . --include='*.log' src/tests | ||
| 52 | |||
| 53 | fedora: | ||
| 54 | runs-on: ubuntu-latest | ||
| 55 | container: fedora:latest | ||
| 56 | steps: | ||
| 57 | - name: Checkout code | ||
| 58 | uses: actions/checkout@v2 | ||
| 59 | - name: Install dependencies | ||
| 60 | run: | | ||
| 61 | dnf install -y php-devel php-pear make | ||
| 62 | - name: Install pecl | ||
| 63 | run: pecl install vld-beta | ||
| 64 | - name: Build and run the testsuite | ||
| 65 | run: make release tests | ||
| 66 | - name: Show logs in case of failure | ||
| 67 | if: ${{ failure() }} | ||
| 68 | run: | | ||
| 69 | grep -r . --include='*.log' src/tests | ||
| 70 | |||
| 71 | archlinux: | ||
| 72 | runs-on: ubuntu-latest | ||
| 73 | container: archlinux:latest | ||
| 74 | steps: | ||
| 75 | - name: Checkout code | ||
| 76 | uses: actions/checkout@v2 | ||
| 77 | - name: Install dependencies | ||
| 78 | continue-on-error: true | ||
| 79 | run: | | ||
| 80 | pacman --sync --refresh --noconfirm --quiet php8 wget autoconf gcc make | ||
| 81 | wget https://pear.php.net/go-pear.phar | ||
| 82 | php go-pear.phar | ||
| 83 | - name: Install pecl | ||
| 84 | continue-on-error: true | ||
| 85 | run: pecl install vld-beta | ||
| 86 | - name: Build SP and run the testsuite | ||
| 87 | continue-on-error: true | ||
| 88 | run: make tests | ||
| 89 | - name: Show logs in case of failure | ||
| 90 | continue-on-error: true | ||
| 91 | if: ${{ failure() }} | ||
| 92 | run: | | ||
| 93 | grep -r . --include='*.log' src/tests | ||
| 94 | |||
| 95 | alpine_php8: | ||
| 96 | runs-on: ubuntu-latest | ||
| 97 | container: alpine:edge | ||
| 98 | steps: | ||
| 99 | - name: Checkout code | ||
| 100 | uses: actions/checkout@v2 | ||
| 101 | - name: Remove tests failing on alpine for wathever reason | ||
| 102 | run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt | ||
| 103 | - name: Install dependencies | ||
| 104 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl php8-session php8-curl bash grep | ||
| 105 | - name: Install pecl | ||
| 106 | continue-on-error: true | ||
| 107 | run: pecl install vld-beta | ||
| 108 | - name: Build SP and run the testsuite | ||
| 109 | run: | | ||
| 110 | make release | ||
| 111 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 112 | make tests | ||
| 113 | - name: Show logs in case of failure | ||
| 114 | if: ${{ failure() }} | ||
| 115 | run: | | ||
| 116 | grep -r . --include='*.log' src/tests | ||
