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

github.com/nextcloud/privacy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-04-20 14:06:47 +0300
committerGeorg Ehrke <developer@georgehrke.com>2020-04-20 14:06:47 +0300
commitdcdd97cb45e734b9b043940f2f787d50a4a89098 (patch)
treea10a1f3e39d93ac452decfa57aa62e2daf19c40c /.github/workflows
parent18e4d96fb79c9908fdf8963bc5ec9a25e612ca34 (diff)
Add GitHub Actions
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/dependabot-approve.yml11
-rw-r--r--.github/workflows/lint.yml75
2 files changed, 86 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..6bc22ea
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,75 @@
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+jobs:
+ php:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ php-versions: ['7.2', '7.3', '7.4']
+
+ name: php${{ matrix.php-versions }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v1
+ with:
+ php-version: ${{ matrix.php-versions }}
+ coverage: none
+
+ - name: Lint
+ run: composer run lint
+
+ php-cs-fixer:
+ name: php-cs
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ php-versions: ['7.4']
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@master
+
+ - name: Set up php
+ uses: shivammathur/setup-php@master
+ with:
+ php-version: ${{ matrix.php-versions }}
+ coverage: none
+
+ - name: Install dependencies
+ run: composer i
+
+ - name: Run coding standards check
+ run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
+
+ node:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: node${{ matrix.node-versions }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up node ${{ matrix.node-versions }}
+ uses: actions/setup-node@v1
+ with:
+ node-versions: ${{ matrix.node-versions }}
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint