From e8c4d2b8c4ced0afcc79c334565adff1ff751e53 Mon Sep 17 00:00:00 2001 From: Sanka Date: Sat, 7 Sep 2024 20:00:59 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b773b6e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Lint and TypeScript Checks + +on: + push: + branches: + - '**' + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install dependencies + run: yarn install + + - name: Run lint-staged for ESLint and TypeScript checks + run: npx lint-staged