diff options
| author | jvoisin | 2022-11-14 14:29:08 +0100 |
|---|---|---|
| committer | jvoisin | 2022-11-14 14:32:17 +0100 |
| commit | 3134f49d4de12d1e2507272e0e5022bdf5d60093 (patch) | |
| tree | 5db014a2fdf17b97bdbc463f3981fe416fb0f6ba /.github/workflows/distributions_php8.yml | |
| parent | 27cbb9e3bce73cef2867a7d052755d93b4ee5826 (diff) | |
Fix CI on alpine
Bump to php81
Diffstat (limited to '.github/workflows/distributions_php8.yml')
| -rw-r--r-- | .github/workflows/distributions_php8.yml | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml index e6693e5..adf71e6 100644 --- a/.github/workflows/distributions_php8.yml +++ b/.github/workflows/distributions_php8.yml | |||
| @@ -6,7 +6,7 @@ on: | |||
| 6 | - cron: '0 16 * * 5' | 6 | - cron: '0 16 * * 5' |
| 7 | 7 | ||
| 8 | jobs: | 8 | jobs: |
| 9 | alpine: | 9 | alpine_81: |
| 10 | runs-on: ubuntu-latest | 10 | runs-on: ubuntu-latest |
| 11 | container: alpine:edge | 11 | container: alpine:edge |
| 12 | steps: | 12 | steps: |
| @@ -17,7 +17,7 @@ jobs: | |||
| 17 | - name: Remove tests failing on alpine for wathever reason | 17 | - name: Remove tests failing on alpine for wathever reason |
| 18 | run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ | 18 | run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ |
| 19 | - name: Install dependencies | 19 | - name: Install dependencies |
| 20 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl re2c | 20 | run: apk add php81-dev php81-cgi php81-simplexml php81-xml pcre-dev build-base php81-pear php81-openssl re2c |
| 21 | - name: Install pecl | 21 | - name: Install pecl |
| 22 | continue-on-error: true | 22 | continue-on-error: true |
| 23 | run: pecl install vld-beta | 23 | run: pecl install vld-beta |
| @@ -91,30 +91,3 @@ jobs: | |||
| 91 | if: ${{ failure() }} | 91 | if: ${{ failure() }} |
| 92 | run: | | 92 | run: | |
| 93 | grep -r . --include='*.log' src/tests | 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 re2c | ||
| 105 | - name: Install pecl | ||
| 106 | continue-on-error: true | ||
| 107 | run: pecl install vld-beta | ||
| 108 | - name: Symlink utilities | ||
| 109 | run: | | ||
| 110 | ln -s /usr/bin/phpize8 /usr/bin/phpize | ||
| 111 | ln -s /usr/bin/php-config8 /usr/bin/php-config | ||
| 112 | - name: Build SP and run the testsuite | ||
| 113 | run: | | ||
| 114 | make release | ||
| 115 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 116 | make tests | ||
| 117 | - name: Show logs in case of failure | ||
| 118 | if: ${{ failure() }} | ||
| 119 | run: | | ||
| 120 | grep -r . --include='*.log' src/tests | ||
