From f737b081f49970bfe0d795846326d8d9cefb9408 Mon Sep 17 00:00:00 2001 From: Aliaksei Astafyeu Date: Fri, 22 Nov 2024 15:18:44 +0100 Subject: [PATCH] Create linters.yml --- .github/workflows/linters.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/linters.yml diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..0721982 --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,28 @@ +name: Linters Check +on: + pull_request: + types: [opened, synchronize] + workflow_dispatch: +jobs: + preview: + runs-on: ubuntu-latest + permissions: + pull-requests: write # Allow comments on PRs + steps: + - name: 🏗 Setup repo + uses: actions/checkout@v3 + + - name: 🏗 Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: yarn + + - name: 📦 Install dependencies + run: yarn install + + - name: 📦 Check eslint + run: yarn lint + + - name: 📦 Check typescript + run: yarn typecheck