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>2020-10-14 22:53:09 +0300
committerdartcafe <github@dartcafe.de>2020-10-20 15:39:57 +0300
commit95b18ee2df975848b6e51241a3bdfa341e6dfa72 (patch)
treec3459ff5e849f507cc12809b6977f1a48d6e0c09 /.github
parentd5bef8722bea37c2bef930279024b083473f84ea (diff)
testing workflows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/app-code-check.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/app-code-check.yml b/.github/workflows/app-code-check.yml
new file mode 100644
index 00000000..c0b43fe8
--- /dev/null
+++ b/.github/workflows/app-code-check.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: ['7.4']
+ server-versions: ['master', 'stable18', 'stable19', 'stable20']
+
+ 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@v1
+ 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 }}