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:46:49 +0300
committerdartcafe <github@dartcafe.de>2021-06-04 22:46:49 +0300
commitb446b7538cb072dc0f6fb33b8cb342e362d8985d (patch)
tree5e5795f469129d0df44a35f2c85d7221fe778de8 /.github
parent07247655ee657d4d4f2c8968c349bc57ce271758 (diff)
rebase merge conflict
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/app-code-check-7.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/app-code-check-7.yml b/.github/workflows/app-code-check-7.yml
new file mode 100644
index 00000000..6a2fd0e0
--- /dev/null
+++ b/.github/workflows/app-code-check-7.yml
@@ -0,0 +1,55 @@
+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', '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 }}