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

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-01-23 15:17:48 +0300
committerGitHub <noreply@github.com>2020-01-23 15:17:48 +0300
commit70bccd6a34a273c5d617dc4af82ca7d38207c1d8 (patch)
treed4a1a521d6f5bbc436fdc35f46d91c87baa520b6 /.github
parent2233c7b1229050711f2f46aba6b5b1c01c0bcae6 (diff)
Create lint.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..3e50644f
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,36 @@
+name: Lint
+on: pull_request
+
+jobs:
+ php-linters:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ['7.2', '7.3', 7.4]
+ 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