From 5d7e73c92e2a2951fb63136231a1f7aa06d4d175 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Wed, 25 Nov 2020 16:47:24 +0100 Subject: [PATCH] CI: Add JS / CSS linter. --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..084a83c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + +jobs: + eslint: + runs-on: ubuntu-latest + container: nextcloudci/eslint:eslint-1 + + name: eslint + steps: + - uses: actions/checkout@v2 + + - name: Lint + run: ./run-eslint.sh + + stylelint: + runs-on: ubuntu-latest + container: nextcloudci/stylelint:stylelint-1 + + name: stylelint + steps: + - uses: actions/checkout@v2 + + - name: Lint + run: ./run-stylelint.sh