diff options
author | René Gieling <github@dartcafe.de> | 2020-06-12 11:29:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 11:29:45 +0300 |
commit | 1dfa539eb09c6756bae47ea8f09f832b4e5723c3 (patch) | |
tree | c21e4c879d2781c1d07b8e59e350f55ee04385aa /.github | |
parent | ec6ba771a5d2d1db10cc883872e99238be483447 (diff) |
add linter actions for js (#964)
add linter actions for js
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..d2bf8786 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,49 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + - stable* + +jobs: + node: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use node ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: ESLint + 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 |