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@protonmail.com>2022-01-16 13:28:30 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-16 13:29:50 +0300
commit3ea84e46a56ab6be61cdec12f64212a96c819e2e (patch)
tree725658e306ab7cf422fc9d203de2375556f04ef9 /.github
parent4206609f664f54678e28eb11f036535f48f2d80e (diff)
Update workflows
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint-eslint.yml44
-rw-r--r--.github/workflows/lint-php-cs.yml35
-rw-r--r--.github/workflows/lint-php.yml47
-rw-r--r--.github/workflows/lint-stylelint.yml44
-rw-r--r--.github/workflows/lint.yml95
5 files changed, 170 insertions, 95 deletions
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml
new file mode 100644
index 00000000..11590ffb
--- /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 00000000..9aad5140
--- /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 00000000..45493c34
--- /dev/null
+++ b/.github/workflows/lint-php.yml
@@ -0,0 +1,47 @@
+# 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:
+ php-lint:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-versions: ["7.3", "7.4", "8.0"]
+
+ name: php-lint
+
+ 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
+
+ summary:
+ runs-on: ubuntu-latest
+ needs: php-lint
+
+ if: always()
+
+ name: php-lint-summary
+
+ steps:
+ - name: Summary status
+ run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi
diff --git a/.github/workflows/lint-stylelint.yml b/.github/workflows/lint-stylelint.yml
new file mode 100644
index 00000000..64edcfba
--- /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 fcd068a3..00000000
--- a/.github/workflows/lint.yml
+++ /dev/null
@@ -1,95 +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:
- - 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:
- - 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:
- - 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