diff options
author | Jonathan Treffler <mail@jonathan-treffler.de> | 2020-08-10 16:27:40 +0200 |
---|---|---|
committer | Jonathan Treffler <mail@jonathan-treffler.de> | 2020-08-10 16:27:40 +0200 |
commit | 1d6e61022027787b0d02ca54cffea426086ae1ed (patch) | |
tree | 0ff83448ea5de661c30790a77166648600b078a0 | |
parent | e215b4ba727b1ecd837470677a77ee9ac413ca81 (diff) |
added github action lint workflow
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r-- | .github/workflows/lint.yml | 52 |
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 |