From aa24fdee60aab6f1c6e821ff478100143f77cb9f Mon Sep 17 00:00:00 2001 From: Daria Domina Date: Sat, 15 Nov 2025 22:53:52 +0100 Subject: [PATCH] add linter and formatter gates --- .github/workflows/run-eslint-check.yaml | 18 ++++++++++++++++++ .github/workflows/run-prettier-check.yaml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/run-eslint-check.yaml create mode 100644 .github/workflows/run-prettier-check.yaml diff --git a/.github/workflows/run-eslint-check.yaml b/.github/workflows/run-eslint-check.yaml new file mode 100644 index 0000000..ebd817a --- /dev/null +++ b/.github/workflows/run-eslint-check.yaml @@ -0,0 +1,18 @@ +name: Run ESLint check + +on: + workflow_call: + workflow_dispatch: + +jobs: + run-eslint-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up project + uses: ./.github/actions/setup-project + + - name: Run ESLint check + run: yarn eslint . diff --git a/.github/workflows/run-prettier-check.yaml b/.github/workflows/run-prettier-check.yaml new file mode 100644 index 0000000..4cff6d9 --- /dev/null +++ b/.github/workflows/run-prettier-check.yaml @@ -0,0 +1,18 @@ +name: Run Prettier check + +on: + workflow_call: + workflow_dispatch: + +jobs: + run-prettier-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up project + uses: ./.github/actions/setup-project + + - name: Run Prettier check + run: yarn prettier --check .