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

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-11-21 12:41:05 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-11-21 12:41:05 +0300
commit8166a4b14a7be7e40a652fcbd92739bf34acd53d (patch)
tree145874a0341f864c43ec43bd465c76c72e6d4adb /.github
parentfac21888fdec113927ac23c11b5504867322dc43 (diff)
Lint with Github actions
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dependabot-approve.yml11
-rw-r--r--.github/workflows/lint.yml36
2 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/dependabot-approve.yml b/.github/workflows/dependabot-approve.yml
new file mode 100644
index 0000000..cc5e6d1
--- /dev/null
+++ b/.github/workflows/dependabot-approve.yml
@@ -0,0 +1,11 @@
+name: Dependabot auto approve
+on: pull_request
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hmarr/auto-approve-action@v2.0.0
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
+ with:
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..5c72fbb
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,36 @@
+name: Lint
+
+on: [push]
+
+jobs:
+ php-linters:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ['7.1', '7.2', '7.3']
+ name: php${{ matrix.php-versions }} lint
+ steps:
+ - name: Checkout
+ uses: actions/checkout@master
+ - name: Set up php${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@master
+ with:
+ php-version: ${{ matrix.php-versions }}
+ coverage: none
+ - name: Lint
+ run: composer run lint
+ node-linters:
+ runs-on: ubuntu-latest
+ name: ESLint
+ steps:
+ - uses: actions/checkout@master
+ - name: Set up Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+ - name: npm install
+ run: npm ci
+ - name: eslint
+ run: npm run lint
+ env:
+ CI: true