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-09-03 09:23:56 +0300
committerdartcafe <github@dartcafe.de>2020-09-03 09:23:56 +0300
commitc8031f8576245f3e00e72a879f34fb13940336b8 (patch)
tree42c41f7e9124efba1cb49e766c54ad5728371dfe /.github
parent9692c2669541f6c1c444e074c4354f8b0fa4c583 (diff)
adding actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml51
1 files changed, 48 insertions, 3 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d2bf8786..cbf985f0 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,12 +3,56 @@ name: Lint
on:
pull_request:
push:
- branches:
- - master
- - stable*
+ # branches:
+ # - master
+ # - stable*
jobs:
+ php-cs-fixer:
+ name: php-cs check
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-version: [7.4]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@master
+ - name: Set up php
+ uses: shivammathur/setup-php@master
+ with:
+ php-version: ${{ matrix.php-version }}
+ coverage: none
+ - name: Install dependencies
+ run: composer i
+ - name: Run coding standards check
+ run: composer run cs:check
+
+ app-code-check:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ nextcloud-versions: ['master']
+ name: Nextcloud ${{ matrix.nextcloud-versions }} app code check
+ steps:
+ - name: Set up php7.4
+ uses: shivammathur/setup-php@master
+ with:
+ php-version: 7.4
+ extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,posix,sqlite,xml,zip
+ coverage: xdebug
+ - name: Checkout Nextcloud
+ run: git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${{ matrix.nextcloud-versions }} nextcloud
+ - name: Run tests
+ run: php -f nextcloud/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
+ - name: Checkout
+ uses: actions/checkout@master
+ with:
+ path: nextcloud/apps/mail
+ - name: Run tests
+ run: php -f nextcloud/occ app:check-code mail
+
node:
+ name: eslint
runs-on: ubuntu-latest
strategy:
@@ -27,6 +71,7 @@ jobs:
run: npm run lint
stylelint:
+ name: stylint
runs-on: ubuntu-latest
strategy: