Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2021-01-31 00:20:10 +0300
committerGitHub <noreply@github.com>2021-01-31 00:20:10 +0300
commit48c11705d683b0796c113ec2098470b9a2fcae14 (patch)
treefea672fadfa247a40b780a6f2abb51820c6c2d69 /.github
parent1bc8064a46e3b570a53d9c6b93213cdd0e2e776a (diff)
Adding php 8 to checks (#1373)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/app-code-check-7.yml (renamed from .github/workflows/app-code-check.yml)2
-rw-r--r--.github/workflows/app-code-check-8.yml55
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--.github/workflows/phpunit.yml6
4 files changed, 60 insertions, 5 deletions
diff --git a/.github/workflows/app-code-check.yml b/.github/workflows/app-code-check-7.yml
index bc6d4d77..b16971b9 100644
--- a/.github/workflows/app-code-check.yml
+++ b/.github/workflows/app-code-check-7.yml
@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
php-versions: ['7.4']
- server-versions: ['master', 'stable18', 'stable19', 'stable20']
+ server-versions: ['master', 'stable19', 'stable20']
name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }}
steps:
diff --git a/.github/workflows/app-code-check-8.yml b/.github/workflows/app-code-check-8.yml
new file mode 100644
index 00000000..17c65d3b
--- /dev/null
+++ b/.github/workflows/app-code-check-8.yml
@@ -0,0 +1,55 @@
+name: PHP AppCode Check
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+env:
+ APP_NAME: polls
+
+jobs:
+ unit-tests:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ php-versions: ['8.0']
+ server-versions: ['master']
+
+ name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }}
+ steps:
+ - name: Checkout server
+ uses: actions/checkout@v2
+ with:
+ repository: nextcloud/server
+ ref: ${{ matrix.server-versions }}
+
+ - name: Checkout submodules
+ 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: Checkout app
+ uses: actions/checkout@v2
+ with:
+ path: apps/${{ env.APP_NAME }}
+
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ tools: phpunit
+ extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite
+
+ - name: Checkout app
+ uses: actions/checkout@v2
+ with:
+ path: apps/${{ env.APP_NAME }}
+
+ - name: App code check
+ run: php occ app:check-code ${{ env.APP_NAME }}
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ebe80bc9..f31c46d7 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
- php-versions: [7.4]
+ php-versions: [7.4, 8.0]
name: php-cs
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index 50e7c42d..29067be1 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -18,7 +18,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
- php-versions: ['7.4']
+ php-versions: ['7.4', '8.0']
databases: ['sqlite']
server-versions: ['master']
@@ -79,7 +79,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
- php-versions: ['7.3', '7.4']
+ php-versions: ['7.3', '7.4', '8.0']
databases: ['mysql']
server-versions: ['master']
@@ -149,7 +149,7 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
- php-versions: ['7.4']
+ php-versions: ['7.4', '8.0']
databases: ['pgsql']
server-versions: ['master']