From 3a6034e8f6cabffba127515db04b1a6151218715 Mon Sep 17 00:00:00 2001 From: Sebastian Geisler Date: Mon, 4 May 2020 11:34:39 +0200 Subject: [PATCH] Add prettier JS formatting enforcenemt to CI --- .github/workflows/linting.yml | 25 +++++++++++++++++++++++++ .github/workflows/mypy.yml | 14 -------------- 2 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/linting.yml delete mode 100644 .github/workflows/mypy.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..ce0233de --- /dev/null +++ b/.github/workflows/linting.yml @@ -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/** diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml deleted file mode 100644 index bd09bf5f..00000000 --- a/.github/workflows/mypy.yml +++ /dev/null @@ -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