diff options
| author | Ben Fuhrmannek | 2022-01-12 19:50:26 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2022-01-12 19:50:26 +0100 |
| commit | e8da4951dabcddd04c6a2e6daa0dea08003e476f (patch) | |
| tree | 49e83a1ebfb39c841029a76fd36abf49222087d8 /.github/workflows/distributions.yml | |
| parent | 02fa1c084405fc96ba83a06cd83047ecd8eb22cb (diff) | |
fix alpine test setup + minor fixes
Diffstat (limited to '.github/workflows/distributions.yml')
| -rw-r--r-- | .github/workflows/distributions.yml | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/.github/workflows/distributions.yml b/.github/workflows/distributions.yml index 2cc81d4..27d0c5d 100644 --- a/.github/workflows/distributions.yml +++ b/.github/workflows/distributions.yml | |||
| @@ -50,7 +50,7 @@ jobs: | |||
| 50 | - name: Checkout code | 50 | - name: Checkout code |
| 51 | uses: actions/checkout@v2 | 51 | uses: actions/checkout@v2 |
| 52 | - name: Remove php8 tests for php7 | 52 | - name: Remove php8 tests for php7 |
| 53 | run: rm -rf src/tests/*php8*/ | 53 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt |
| 54 | - name: Install dependencies | 54 | - name: Install dependencies |
| 55 | run: | | 55 | run: | |
| 56 | apt update | 56 | apt update |
| @@ -71,7 +71,7 @@ jobs: | |||
| 71 | - name: Checkout code | 71 | - name: Checkout code |
| 72 | uses: actions/checkout@v2 | 72 | uses: actions/checkout@v2 |
| 73 | - name: Remove php8 tests for php7 | 73 | - name: Remove php8 tests for php7 |
| 74 | run: rm -rf src/tests/*php8*/ | 74 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt |
| 75 | - name: Install dependencies | 75 | - name: Install dependencies |
| 76 | continue-on-error: true | 76 | continue-on-error: true |
| 77 | run: | | 77 | run: | |
| @@ -81,7 +81,7 @@ jobs: | |||
| 81 | - name: Install pecl | 81 | - name: Install pecl |
| 82 | continue-on-error: true | 82 | continue-on-error: true |
| 83 | run: pecl install vld-beta | 83 | run: pecl install vld-beta |
| 84 | - name: Build and run the testsuite | 84 | - name: Build SP and run the testsuite |
| 85 | continue-on-error: true | 85 | continue-on-error: true |
| 86 | run: make tests | 86 | run: make tests |
| 87 | - name: Show logs in case of failure | 87 | - name: Show logs in case of failure |
| @@ -92,22 +92,25 @@ jobs: | |||
| 92 | 92 | ||
| 93 | alpine: | 93 | alpine: |
| 94 | runs-on: ubuntu-latest | 94 | runs-on: ubuntu-latest |
| 95 | container: alpine:edge | 95 | container: alpine:latest |
| 96 | steps: | 96 | steps: |
| 97 | - name: Checkout code | 97 | - name: Checkout code |
| 98 | uses: actions/checkout@v2 | 98 | uses: actions/checkout@v2 |
| 99 | - name: Remove php8 tests for php7 | 99 | - name: Remove php8 tests for php7 |
| 100 | run: rm -rf src/tests/*php8*/ | 100 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt |
| 101 | - name: Remove tests failing on alpine for wathever reason | 101 | - name: Remove tests failing on alpine for wathever reason |
| 102 | run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ | 102 | run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt /tests/broken_configuration/encrypt_regexp_cookies_bad_regexp.phpt |
| 103 | - name: Install dependencies | 103 | - name: Install dependencies |
| 104 | run: apk add php7-dev php7-cgi php7-simplexml php7-xml pcre-dev build-base php7-pear php7-openssl | 104 | run: apk add php7-dev php7-cgi php7-simplexml php7-xml pcre-dev build-base php7-pear php7-openssl php7-session |
| 105 | - name: Install pecl | 105 | - name: Install pecl |
| 106 | continue-on-error: true | 106 | continue-on-error: true |
| 107 | run: pecl install vld-beta | 107 | run: pecl install vld-beta |
| 108 | - name: Build and run the testsuite | 108 | - name: Build SP and run the testsuite |
| 109 | continue-on-error: true | 109 | continue-on-error: true |
| 110 | run: make tests | 110 | run: | |
| 111 | make release | ||
| 112 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 113 | make tests | ||
| 111 | - name: Show logs in case of failure | 114 | - name: Show logs in case of failure |
| 112 | if: ${{ failure() }} | 115 | if: ${{ failure() }} |
| 113 | continue-on-error: true | 116 | continue-on-error: true |
| @@ -121,22 +124,19 @@ jobs: | |||
| 121 | steps: | 124 | steps: |
| 122 | - name: Checkout code | 125 | - name: Checkout code |
| 123 | uses: actions/checkout@v2 | 126 | uses: actions/checkout@v2 |
| 124 | # - name: Remove php7 tests for php8 | 127 | - name: Remove tests failing on alpine for wathever reason |
| 125 | # run: rm -rf src/tests/*php7*/ | 128 | run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt |
| 126 | # - name: Remove tests failing on alpine for wathever reason | ||
| 127 | # run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ | ||
| 128 | - name: Install dependencies | 129 | - name: Install dependencies |
| 129 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl | 130 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl php8-session php8-curl |
| 130 | - name: Install pecl | 131 | - name: Install pecl |
| 131 | continue-on-error: true | 132 | continue-on-error: true |
| 132 | run: pecl install vld-beta | 133 | run: pecl install vld-beta |
| 133 | - name: Link phpize | 134 | - name: Build SP and run the testsuite |
| 134 | run: ln -s /usr/bin/phpize8 /usr/bin/phpize | ||
| 135 | - name: Link php-config | ||
| 136 | run: ln -s /usr/bin/php-config8 /usr/bin/php-config | ||
| 137 | - name: Build and run the testsuite | ||
| 138 | continue-on-error: true | 135 | continue-on-error: true |
| 139 | run: make tests | 136 | run: | |
| 137 | make release | ||
| 138 | ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/ | ||
| 139 | make tests | ||
| 140 | - name: Show logs in case of failure | 140 | - name: Show logs in case of failure |
| 141 | if: ${{ failure() }} | 141 | if: ${{ failure() }} |
| 142 | continue-on-error: true | 142 | continue-on-error: true |
