diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/distributions.yml | 52 | ||||
| -rw-r--r-- | .github/workflows/distributions_php8.yml | 32 |
2 files changed, 38 insertions, 46 deletions
diff --git a/.github/workflows/distributions.yml b/.github/workflows/distributions.yml index 3b90fee..09bff96 100644 --- a/.github/workflows/distributions.yml +++ b/.github/workflows/distributions.yml | |||
| @@ -9,7 +9,7 @@ jobs: | |||
| 9 | - name: Checkout code | 9 | - name: Checkout code |
| 10 | uses: actions/checkout@v2 | 10 | uses: actions/checkout@v2 |
| 11 | - name: Remove php8 tests for php7 | 11 | - name: Remove php8 tests for php7 |
| 12 | run: rm -rf src/tests/*php8*/ | 12 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt src/tests/disable_function/*_signal.phpt |
| 13 | - name: Install dependencies | 13 | - name: Install dependencies |
| 14 | run: | | 14 | run: | |
| 15 | apt update | 15 | apt update |
| @@ -17,12 +17,11 @@ jobs: | |||
| 17 | - name: Install pecl | 17 | - name: Install pecl |
| 18 | run: pecl install vld-beta | 18 | run: pecl install vld-beta |
| 19 | - name: Build and run the testsuite | 19 | - name: Build and run the testsuite |
| 20 | run: make tests | 20 | run: make release tests |
| 21 | - name: Show logs in case of failure | 21 | - name: Show logs in case of failure |
| 22 | if: ${{ failure() }} | 22 | if: ${{ failure() }} |
| 23 | run: | | 23 | run: | |
| 24 | grep -r . ./src/tests/*/*.out | 24 | grep -r . --include='*.log' src/tests |
| 25 | grep -r . ./src/tests/*/*.diff | ||
| 26 | 25 | ||
| 27 | fedora: | 26 | fedora: |
| 28 | runs-on: ubuntu-latest | 27 | runs-on: ubuntu-latest |
| @@ -31,19 +30,18 @@ jobs: | |||
| 31 | - name: Checkout code | 30 | - name: Checkout code |
| 32 | uses: actions/checkout@v2 | 31 | uses: actions/checkout@v2 |
| 33 | - name: Remove php8 tests for php7 | 32 | - name: Remove php8 tests for php7 |
| 34 | run: rm -rf src/tests/*php8*/ | 33 | run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt src/tests/disable_function/*_signal.phpt |
| 35 | - name: Install dependencies | 34 | - name: Install dependencies |
| 36 | run: | | 35 | run: | |
| 37 | dnf install -y php-devel php-pear make | 36 | dnf install -y php-devel php-pear make |
| 38 | - name: Install pecl | 37 | - name: Install pecl |
| 39 | run: pecl install vld-beta | 38 | run: pecl install vld-beta |
| 40 | - name: Build and run the testsuite | 39 | - name: Build and run the testsuite |
| 41 | run: make tests | 40 | run: make release tests |
| 42 | - name: Show logs in case of failure | 41 | - name: Show logs in case of failure |
| 43 | if: ${{ failure() }} | 42 | if: ${{ failure() }} |
| 44 | run: | | 43 | run: | |
| 45 | grep -r . ./src/tests/*/*.out | 44 | grep -r . --include='*.log' src/tests |
| 46 | grep -r . ./src/tests/*/*.diff | ||
| 47 | 45 | ||
| 48 | ubuntu: | 46 | ubuntu: |
| 49 | runs-on: ubuntu-latest | 47 | runs-on: ubuntu-latest |
| @@ -64,8 +62,7 @@ jobs: | |||
| 64 | - name: Show logs in case of failure | 62 | - name: Show logs in case of failure |
| 65 | if: ${{ failure() }} | 63 | if: ${{ failure() }} |
| 66 | run: | | 64 | run: | |
| 67 | grep -r . ./src/tests/*/*.out | 65 | grep -r . --include='*.log' src/tests |
| 68 | grep -r . ./src/tests/*/*.diff | ||
| 69 | 66 | ||
| 70 | archlinux: | 67 | archlinux: |
| 71 | runs-on: ubuntu-latest | 68 | runs-on: ubuntu-latest |
| @@ -91,8 +88,7 @@ jobs: | |||
| 91 | continue-on-error: true | 88 | continue-on-error: true |
| 92 | if: ${{ failure() }} | 89 | if: ${{ failure() }} |
| 93 | run: | | 90 | run: | |
| 94 | grep -r . ./src/tests/*/*.out | 91 | grep -r . --include='*.log' src/tests |
| 95 | grep -r . ./src/tests/*/*.diff | ||
| 96 | 92 | ||
| 97 | alpine: | 93 | alpine: |
| 98 | runs-on: ubuntu-latest | 94 | runs-on: ubuntu-latest |
| @@ -116,5 +112,33 @@ jobs: | |||
| 116 | if: ${{ failure() }} | 112 | if: ${{ failure() }} |
| 117 | continue-on-error: true | 113 | continue-on-error: true |
| 118 | run: | | 114 | run: | |
| 119 | grep -r . ./src/tests/*/*.out | 115 | grep -r . --include='*.log' src/tests |
| 120 | grep -r . ./src/tests/*/*.diff | 116 | |
| 117 | ## PHP 8 | ||
| 118 | alpine: | ||
| 119 | runs-on: ubuntu-latest | ||
| 120 | container: alpine:edge | ||
| 121 | steps: | ||
| 122 | - name: Checkout code | ||
| 123 | uses: actions/checkout@v2 | ||
| 124 | # - name: Remove php7 tests for php8 | ||
| 125 | # run: rm -rf src/tests/*php7*/ | ||
| 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 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl | ||
| 130 | - name: Install pecl | ||
| 131 | continue-on-error: true | ||
| 132 | run: pecl install vld-beta | ||
| 133 | - name: Link phpize | ||
| 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 | ||
| 139 | run: make tests | ||
| 140 | - name: Show logs in case of failure | ||
| 141 | if: ${{ failure() }} | ||
| 142 | continue-on-error: true | ||
| 143 | run: | | ||
| 144 | grep -r . --include='*.log' src/tests | ||
diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml deleted file mode 100644 index f055499..0000000 --- a/.github/workflows/distributions_php8.yml +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | name: CI for linux distributions, on php8 | ||
| 2 | on: ['pull_request', 'push'] | ||
| 3 | |||
| 4 | jobs: | ||
| 5 | alpine: | ||
| 6 | runs-on: ubuntu-latest | ||
| 7 | container: alpine:edge | ||
| 8 | steps: | ||
| 9 | - name: Checkout code | ||
| 10 | uses: actions/checkout@v2 | ||
| 11 | - name: Remove php7 tests for php8 | ||
| 12 | run: rm -rf src/tests/*php7*/ | ||
| 13 | - name: Remove tests failing on alpine for wathever reason | ||
| 14 | run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ | ||
| 15 | - name: Install dependencies | ||
| 16 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl | ||
| 17 | - name: Install pecl | ||
| 18 | continue-on-error: true | ||
| 19 | run: pecl install vld-beta | ||
| 20 | - name: Link phpize | ||
| 21 | run: ln -s /usr/bin/phpize8 /usr/bin/phpize | ||
| 22 | - name: Link php-config | ||
| 23 | run: ln -s /usr/bin/php-config8 /usr/bin/php-config | ||
| 24 | - name: Build and run the testsuite | ||
| 25 | continue-on-error: true | ||
| 26 | run: make tests | ||
| 27 | - name: Show logs in case of failure | ||
| 28 | if: ${{ failure() }} | ||
| 29 | continue-on-error: true | ||
| 30 | run: | | ||
| 31 | grep -r . ./src/tests/*/*.out | ||
| 32 | grep -r . ./src/tests/*/*.diff | ||
