Move NoDB PHPUnit to GitHub Actions

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2021-06-02 22:56:33 +02:00
parent fdb55c65f8
commit 4e2311d45c
No known key found for this signature in database
GPG Key ID: CC14BE8FDDEB46B8
2 changed files with 22 additions and 46 deletions

View File

@ -214,43 +214,6 @@ trigger:
- pull_request - pull_request
- push - push
---
kind: pipeline
name: nodb
steps:
- name: submodules
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
commands:
- git submodule update --init
- name: nodb-php7.3
image: ghcr.io/nextcloud/continuous-integration-php7.3:php7.3-6
commands:
- bash tests/drone-run-php-tests.sh || exit 0
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
- name: nodb-php7.4
image: ghcr.io/nextcloud/continuous-integration-php7.4:php7.4-3
commands:
- bash tests/drone-run-php-tests.sh || exit 0
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
- name: nodb-php8.0
image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
commands:
- bash tests/drone-run-php-tests.sh || exit 0
- NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
services:
- name: cache
image: ghcr.io/nextcloud/continuous-integration-redis:latest
trigger:
branch:
- master
- stable*
event:
- pull_request
- push
--- ---
kind: pipeline kind: pipeline
name: sqlite name: sqlite

View File

@ -8,12 +8,30 @@ on:
- stable* - stable*
jobs: jobs:
phpunit-nodb:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
steps:
- name: Checkout server
uses: actions/checkout@v2
with:
submodules: true
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,oci8,openssl,pdo_sqlite,posix,sqlite,xml,zip
tools: phpunit:8.5.2
coverage: none
- name: PHPUnit
run: NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
phpunit-oci8: phpunit-oci8:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
# do not stop on another job's failure
fail-fast: false
matrix: matrix:
php-versions: [ '7.4' ] php-versions: [ '7.4' ]
databases: [ 'oci' ] databases: [ 'oci' ]
@ -29,13 +47,8 @@ jobs:
steps: steps:
- name: Checkout server - name: Checkout server
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
- name: Checkout submodules submodules: true
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Set up php ${{ matrix.php-versions }} - name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2