X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=fd250c617ad438e5a8f8f036ad1423a8aabed55e;hb=e81e57aadf5647511f5c27843ea565a141cf2e3d;hp=ad635947770714a304679c6d20d230aa37ad7a8c;hpb=2bff1a14bb1eb2a8a0c77c75b12e809908812eeb;p=m6w6%2Fext-pq diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad63594..fd250c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,14 +8,14 @@ on: jobs: old-matrix-0: - name: old-matrix-0 + name: "old-matrix-0 (7.0)" env: PHP: "7.0" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -44,14 +44,14 @@ jobs: make -f scripts/ci/Makefile test old-matrix-1: - name: old-matrix-1 + name: "old-matrix-1 (7.1)" env: PHP: "7.1" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -80,14 +80,14 @@ jobs: make -f scripts/ci/Makefile test old-matrix-2: - name: old-matrix-2 + name: "old-matrix-2 (7.2)" env: PHP: "7.2" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -116,14 +116,14 @@ jobs: make -f scripts/ci/Makefile test old-matrix-3: - name: old-matrix-3 + name: "old-matrix-3 (7.3)" env: PHP: "7.3" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -152,14 +152,14 @@ jobs: make -f scripts/ci/Makefile test old-matrix-4: - name: old-matrix-4 + name: "old-matrix-4 (7.4)" env: PHP: "7.4" enable_debug: "yes" enable_maintainer_zts: "yes" enable_json: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -187,15 +187,15 @@ jobs: run: | make -f scripts/ci/Makefile test - master-0: - name: master-0 - continue-on-error: true + old-matrix-5: + name: "old-matrix-5 (8.0)" env: - PHP: "master" + PHP: "8.0" enable_debug: "yes" - enable_zts: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + enable_maintainer_zts: "yes" + enable_json: "yes" + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -223,11 +223,51 @@ jobs: run: | make -f scripts/ci/Makefile test - cur-none-0: - name: cur-none-0 + old-matrix-6: + name: "old-matrix-6 (8.1)" env: - PHP: "8.0" - runs-on: ubuntu-20.04 + PHP: "8.1" + enable_debug: "yes" + enable_maintainer_zts: "yes" + enable_json: "yes" + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Install + run: | + sudo apt-get install -y \ + php-cli \ + php-pear \ + libpq-dev \ + re2c + - name: Prepare + run: | + make -f scripts/ci/Makefile php || make -f scripts/ci/Makefile clean php + make -f scripts/ci/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master + - name: Build + run: | + make -f scripts/ci/Makefile ext PECL=pq + - name: Prepare Test + run: | + sudo systemctl start postgresql + sudo -u postgres createuser --login runner + sudo -u postgres createdb -O runner runner + - name: Test + run: | + make -f scripts/ci/Makefile test + + next-0: + name: "next-0 (master)" + continue-on-error: true + env: + PHP: "master" + enable_debug: "yes" + enable_zts: "yes" + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -256,13 +296,13 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-0: - name: cur-dbg-zts-0 + name: "cur-dbg-zts-0 (8.2)" env: - PHP: "8.0" + PHP: "8.2" enable_debug: "yes" enable_zts: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -291,13 +331,13 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-1: - name: cur-dbg-zts-1 + name: "cur-dbg-zts-1 (8.2)" env: - PHP: "8.0" + PHP: "8.2" enable_debug: "no" enable_zts: "yes" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -326,13 +366,13 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-2: - name: cur-dbg-zts-2 + name: "cur-dbg-zts-2 (8.2)" env: - PHP: "8.0" + PHP: "8.2" enable_debug: "yes" enable_zts: "no" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -361,13 +401,13 @@ jobs: make -f scripts/ci/Makefile test cur-dbg-zts-3: - name: cur-dbg-zts-3 + name: "cur-dbg-zts-3 (8.2)" env: - PHP: "8.0" + PHP: "8.2" enable_debug: "no" enable_zts: "no" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: @@ -396,13 +436,13 @@ jobs: make -f scripts/ci/Makefile test cur-cov-0: - name: cur-cov-0 + name: "cur-cov-0 (8.2)" env: CFLAGS: "-O0 -g --coverage" CXXFLAGS: "-O0 -g --coverage" - PHP: "8.0" - enable_spl: "yes" - runs-on: ubuntu-20.04 + PHP: "8.2" + PQ_DSN: "postgres:///runner" + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: