Merge pull request #35 from sgeisler/2020-05-js-formatting-ci
Add JS formatting enforcenemt to CI
This commit is contained in:
commit
8530413537
25
.github/workflows/linting.yml
vendored
Normal file
25
.github/workflows/linting.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Run Linters
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
mypy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Run MyPy python type checker
|
||||||
|
uses: jpetrucciani/mypy-check@master
|
||||||
|
with:
|
||||||
|
path: 'lnbits'
|
||||||
|
|
||||||
|
prettier:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Check JS code formatting convention
|
||||||
|
uses: creyD/prettier_action@v2.2
|
||||||
|
with:
|
||||||
|
dry: True
|
||||||
|
prettier_options: --write lnbits/static/js/** lnbits/core/static/js/** lnbits/extensions/*/templates/**
|
14
.github/workflows/mypy.yml
vendored
14
.github/workflows/mypy.yml
vendored
|
@ -1,14 +0,0 @@
|
||||||
name: mypy type checker
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- uses: jpetrucciani/mypy-check@master
|
|
||||||
with:
|
|
||||||
path: lnbits
|
|
Loading…
Reference in New Issue
Block a user