diff options
| author | jvoisin | 2022-03-20 19:18:17 +0100 |
|---|---|---|
| committer | jvoisin | 2022-03-20 19:18:17 +0100 |
| commit | bcc33313b95bf21d4fb8ce755be6bbfd308bb2e8 (patch) | |
| tree | 698ed81df0c84ed4cf15efe53e343bc3a0879be2 /.github/workflows/distributions_php8.yml | |
| parent | 57b345f16ccad6e5b273c58e819ca5adefdcbf72 (diff) | |
Add more distributions to php8 CI
Diffstat (limited to '.github/workflows/distributions_php8.yml')
| -rw-r--r-- | .github/workflows/distributions_php8.yml | 84 |
1 files changed, 84 insertions, 0 deletions
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 | ||
