Skip to content

Commit

Permalink
Merge pull request #37 from patricklodder/qa/linters
Browse files Browse the repository at this point in the history
Qa: add linters
  • Loading branch information
patricklodder committed Dec 12, 2021
2 parents f6fc76f + 250516a commit dc0a034
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: lint-js

on:
push:
paths:
- "**/*.js"
- ".github/workflows/lint-js.yml"
pull_request:
paths:
- "**/*.js"
- ".github/workflows/lint-js.yml"

jobs:
lint-js:
name: lint (javascript)
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- name: Install semistandard
run: |
npm install -g semistandard
- name: Checkout
uses: actions/checkout@v2

- name: Run linter
run: find . -name "*.js" | xargs semistandard
28 changes: 28 additions & 0 deletions .github/workflows/lint-py.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lint-py

on:
push:
paths:
- "**/*.py"
- ".github/workflows/lint-py.yml"
pull_request:
paths:
- "**/*.py"
- ".github/workflows/lint-py.yml"

jobs:
lint-py:
name: lint (python)
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- name: Install pylint
run: pip3 install pylint

- name: Checkout
uses: actions/checkout@v2

- name: Run linter
run: find . -name "*.py" | xargs pylint

0 comments on commit dc0a034

Please sign in to comment.