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:
authordartcafe <github@dartcafe.de>2021-06-04 22:27:02 +0300
committerdartcafe <github@dartcafe.de>2021-06-04 22:27:02 +0300
commit3bfc7da750b4debc7a34116e24fe54e6484b05f3 (patch)
tree59243732d13cd32725be439f21c6bc6e58f50152 /.github
parent65e294f41178d64a95046b5aafd3d6cfa72b0465 (diff)
updates test (NC21/master, PHP 7.4/8.0)
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/app-code-check-7.yml55
-rw-r--r--.github/workflows/app-code-check.yml (renamed from .github/workflows/app-code-check-8.yml)2
-rw-r--r--.github/workflows/lint.yml2
-rw-r--r--.github/workflows/static-analysis.yml5
4 files changed, 5 insertions, 59 deletions
diff --git a/.github/workflows/app-code-check-7.yml b/.github/workflows/app-code-check-7.yml
deleted file mode 100644
index c681683b..00000000
--- a/.github/workflows/app-code-check-7.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-name: PHP 7.4
-
-on:
- pull_request:
- push:
- branches:
- - master
- - stable*
-
-env:
- APP_NAME: polls
-
-jobs:
- unit-tests:
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- php-versions: ['7.4']
- server-versions: ['master', 'stable20', 'stable21']
-
- 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/app-code-check-8.yml b/.github/workflows/app-code-check.yml
index 59f8428e..a63a6ba8 100644
--- a/.github/workflows/app-code-check-8.yml
+++ b/.github/workflows/app-code-check.yml
@@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
- php-versions: ['8.0']
+ php-versions: ['7.4', '8.0']
server-versions: ['master', 'stable21']
name: AppCode check php${{ matrix.php-versions }}-${{ matrix.server-versions }}
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ebe80bc9..82874d4b 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/static-analysis.yml b/.github/workflows/static-analysis.yml
index ea6f78a7..502c88ba 100644
--- a/.github/workflows/static-analysis.yml
+++ b/.github/workflows/static-analysis.yml
@@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- ocp-version: [ 'dev-master', 'dev-stable21', 'dev-stable20' ]
+ ocp-version: [ 'dev-master', 'dev-stable21' ]
+ php-versions: ['7.4', '8.0']
name: Nextcloud ${{ matrix.ocp-version }}
steps:
- name: Checkout
@@ -20,7 +21,7 @@ jobs:
- name: Set up php
uses: shivammathur/setup-php@master
with:
- php-version: 7.4
+ php-version: ${{ matrix.php-versions }}
coverage: none
- name: Install dependencies
run: composer i