From 6f04da7030a6cc879258001db215a508d187f48b Mon Sep 17 00:00:00 2001 From: AdityaSalunkhe21 Date: Thu, 18 Dec 2025 18:22:23 +0530 Subject: [PATCH] Add lint and build workflow --- .gitea/workflows/lint-and-build.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/lint-and-build.yml diff --git a/.gitea/workflows/lint-and-build.yml b/.gitea/workflows/lint-and-build.yml new file mode 100644 index 0000000..162e2f4 --- /dev/null +++ b/.gitea/workflows/lint-and-build.yml @@ -0,0 +1,37 @@ +name: Lint and Build + +on: + pull_request: + branches: [main] + paths: + - 'src/**' + push: + branches: [main] + paths: + - 'src/**' + +jobs: + lint-and-build: + name: Run lint and build checks + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Enable corepack and yarn + run: corepack enable + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run ESLint + run: yarn lint + + - name: Run build + run: yarn build -- 2.45.2