diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/builds.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/distributions.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/distributions_php8.yml | 32 |
3 files changed, 44 insertions, 3 deletions
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 2038ad7..706238d 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | name: CI for php versions | 1 | name: CI for php versions |
| 2 | on: ['pull_request', 'push'] | 2 | on: |
| 3 | pull_request: | ||
| 4 | push: | ||
| 5 | schedule: | ||
| 6 | - cron: '0 16 * * 5' | ||
| 3 | 7 | ||
| 4 | jobs: | 8 | jobs: |
| 5 | ci: | 9 | ci: |
diff --git a/.github/workflows/distributions.yml b/.github/workflows/distributions.yml index 9c19f39..18a8cce 100644 --- a/.github/workflows/distributions.yml +++ b/.github/workflows/distributions.yml | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | name: CI for linux distributions | 1 | name: CI for linux distributions |
| 2 | on: ['pull_request', 'push'] | 2 | on: |
| 3 | pull_request: | ||
| 4 | push: | ||
| 5 | schedule: | ||
| 6 | - cron: '0 16 * * 5' | ||
| 7 | |||
| 3 | 8 | ||
| 4 | jobs: | 9 | jobs: |
| 5 | debian: | 10 | debian: |
| @@ -25,7 +30,7 @@ jobs: | |||
| 25 | 30 | ||
| 26 | fedora: | 31 | fedora: |
| 27 | runs-on: ubuntu-latest | 32 | runs-on: ubuntu-latest |
| 28 | container: fedora:latest | 33 | container: fedora:34 |
| 29 | steps: | 34 | steps: |
| 30 | - name: Checkout code | 35 | - name: Checkout code |
| 31 | uses: actions/checkout@v2 | 36 | uses: actions/checkout@v2 |
diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml new file mode 100644 index 0000000..04cc1ba --- /dev/null +++ b/.github/workflows/distributions_php8.yml | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | name: CI for linux distributions, on php8 | ||
| 2 | on: | ||
| 3 | pull_request: | ||
| 4 | push: | ||
| 5 | schedule: | ||
| 6 | - cron: '0 16 * * 5' | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | alpine: | ||
| 10 | runs-on: ubuntu-latest | ||
| 11 | container: alpine:edge | ||
| 12 | steps: | ||
| 13 | - name: Checkout code | ||
| 14 | uses: actions/checkout@v2 | ||
| 15 | - name: Remove php7 tests for php8 | ||
| 16 | run: rm -rf src/tests/*php7*/ | ||
| 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/ | ||
| 19 | - name: Install dependencies | ||
| 20 | run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl | ||
| 21 | - name: Install pecl | ||
| 22 | continue-on-error: true | ||
| 23 | run: pecl install vld-beta | ||
| 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 | ||
