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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-26 23:45:19 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-26 23:45:19 +0300
commitf4a8a71b2752446c5e9c7ae2071dba09e0b8dd0e (patch)
treec4930d9e8c76c9361549318005e21f7ce7fe6b00 /.github/workflows
parentf31cf4515bf29b2b387e271c8f346a4565feebad (diff)
Lint on github actions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to '.github/workflows')
-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 000000000..3e50644f2
--- /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