From 038372a49e8084454d9ebaf4f33bdc449246b660 Mon Sep 17 00:00:00 2001 From: Sudhanshu Dasgupta Date: Wed, 25 Oct 2023 17:27:43 +0530 Subject: [PATCH] feat(workflow): add lint workflow Signed-off-by: Sudhanshu Dasgupta --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..93cc867d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Linting and formatting + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn install + + - name: Run Lint + run: yarn lint && yarn format:check && yarn lint-staged