summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Treffler <mail@jonathan-treffler.de>2020-08-10 16:27:40 +0200
committerJonathan Treffler <mail@jonathan-treffler.de>2020-08-10 16:27:40 +0200
commit1d6e61022027787b0d02ca54cffea426086ae1ed (patch)
tree0ff83448ea5de661c30790a77166648600b078a0
parente215b4ba727b1ecd837470677a77ee9ac413ca81 (diff)
added github action lint workflow
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r--.github/workflows/lint.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 000000000..8497d5e34
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,52 @@
+name: Lint
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+
+jobs:
+ eslint:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: eslint node${{ matrix.node-versions }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up node ${{ matrix.node-versions }}
+ uses: actions/setup-node@v1
+ with:
+ node-versions: ${{ matrix.node-versions }}
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
+
+ stylelint:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-versions: [12.x]
+
+ name: stylelint node${{ matrix.node-versions }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up node ${{ matrix.node-versions }}
+ uses: actions/setup-node@v1
+ with:
+ node-versions: ${{ matrix.node-versions }}
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run stylelint \ No newline at end of file