From 251d8711f1ca9c588e46952e68e51f562d7628e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Mart=C3=ADnez?= Date: Wed, 31 Jul 2024 12:05:09 +0200 Subject: [PATCH] Added prettier linter --- .github/workflows/black.yml | 2 +- .github/workflows/prettier.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9065b5e02..2f4a6179b 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,4 +1,4 @@ -name: Lint +name: Python lint on: [push, pull_request] diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 000000000..0806037d0 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,25 @@ +name: JS Lint + +# This action works with pull requests and pushes +on: + pull_request: + push: + branches: + - main + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} + + - name: Prettify code + uses: creyD/prettier_action@v4.3 + with: + dry: True + prettier_options: --check **/*.{js,md} \ No newline at end of file