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

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-05 10:50:14 +0300
committerGitHub <noreply@github.com>2022-01-05 10:50:14 +0300
commit154819fe719619b9fde66751ff3a43a2de7d589d (patch)
tree4451cedcc4ef6d357a0327df10dd8875178137ce
parentef1673022976b4e8db4146f401a7aff046133b5a (diff)
parent638b464111588106479fa6189c624c97af9c8481 (diff)
Merge pull request #531 from nextcloud/backport/530/stable22v22.2.4rc2v22.2.4rc1
-rw-r--r--.github/workflows/lint-eslint.yml44
-rw-r--r--.github/workflows/lint-php-cs.yml35
-rw-r--r--.github/workflows/lint-php.yml35
-rw-r--r--.github/workflows/lint-stylelint.yml44
-rw-r--r--.github/workflows/lint.yml98
5 files changed, 158 insertions, 98 deletions
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml
new file mode 100644
index 0000000..11590ff
--- /dev/null
+++ b/.github/workflows/lint-eslint.yml
@@ -0,0 +1,44 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+
+ name: eslint
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Read package.json node and npm engines version
+ uses: skjnldsv/read-package-engines-version-actions@v1.1
+ id: versions
+ with:
+ fallbackNode: '^12'
+ fallbackNpm: '^6'
+
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
+
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml
new file mode 100644
index 0000000..9aad514
--- /dev/null
+++ b/.github/workflows/lint-php-cs.yml
@@ -0,0 +1,35 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+
+ name: php-cs
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: "7.4"
+ coverage: none
+
+ - name: Install dependencies
+ run: composer i
+
+ - name: Lint
+ run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml
new file mode 100644
index 0000000..3e8bac9
--- /dev/null
+++ b/.github/workflows/lint-php.yml
@@ -0,0 +1,35 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ["7.3", "7.4", "8.0"]
+
+ name: php
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ coverage: none
+
+ - name: Lint
+ run: composer run lint
diff --git a/.github/workflows/lint-stylelint.yml b/.github/workflows/lint-stylelint.yml
new file mode 100644
index 0000000..64edcfb
--- /dev/null
+++ b/.github/workflows/lint-stylelint.yml
@@ -0,0 +1,44 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+ - stable*
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+
+ name: stylelint
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Read package.json node and npm engines version
+ uses: skjnldsv/read-package-engines-version-actions@v1.1
+ id: versions
+ with:
+ fallbackNode: '^12'
+ fallbackNpm: '^6'
+
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
+
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run stylelint
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
deleted file mode 100644
index 502c041..0000000
--- a/.github/workflows/lint.yml
+++ /dev/null
@@ -1,98 +0,0 @@
-name: Lint
-
-on:
- pull_request:
- push:
- branches:
- - master
- - stable*
-
-jobs:
- php:
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- php-versions: ["7.3", "7.4", "8.0"]
-
- name: php${{ matrix.php-versions }}
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Set up php ${{ matrix.php-versions }}
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php-versions }}
- coverage: none
-
- - name: Lint
- run: composer run lint
-
- php-cs-fixer:
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- php-versions: ["7.4"]
-
- name: cs php${{ matrix.php-versions }}
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Set up php
- uses: shivammathur/setup-php@v2
- 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
-
- name: eslint node
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Set up node
- uses: actions/setup-node@v2
- with:
- node-version: 14
-
- - name: Set up npm7
- run: npm i -g npm@7
-
- - name: Install dependencies
- run: npm ci
-
- - name: Lint
- run: npm run lint
-
- stylelint:
- runs-on: ubuntu-latest
-
- name: stylelint node
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Set up node
- uses: actions/setup-node@v2
- with:
- node-version: 14
-
- - name: Set up npm7
- run: npm i -g npm@7
-
- - name: Install dependencies
- run: npm ci
-
- - name: Lint
- run: npm run stylelint