From c4aa6a8494d121e5894b3f40e55fbfb2353a16c3 Mon Sep 17 00:00:00 2001 From: AdityaSalunkhe21 Date: Thu, 18 Dec 2025 18:30:46 +0530 Subject: [PATCH 1/2] Add lint and build github workflow --- .github/workflows/lint-and-build.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lint-and-build.yml diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml new file mode 100644 index 0000000..c209440 --- /dev/null +++ b/.github/workflows/lint-and-build.yml @@ -0,0 +1,35 @@ +name: Lint and Build + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +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" + cache: "yarn" + cache-dependency-path: yarn.lock + + - name: Enable corepack (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 From a612d43f97fbb800d278ed38964539481af0e720 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 23 Dec 2025 16:48:34 +0530 Subject: [PATCH 2/2] Update gitea lint CI to trigger on push to main branch --- .gitea/workflows/lint-and-build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/lint-and-build.yml b/.gitea/workflows/lint-and-build.yml index 2551219..0043323 100644 --- a/.gitea/workflows/lint-and-build.yml +++ b/.gitea/workflows/lint-and-build.yml @@ -1,19 +1,20 @@ -name: Lint and Build - on: pull_request: branches: [ main ] + push: + branches: [ main ] jobs: lint-and-build: name: Run lint and build checks runs-on: ubuntu-latest + steps: - name: Checkout repository - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '22' @@ -22,9 +23,9 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - + - name: Run ESLint run: yarn lint - + - name: Run build run: yarn build -- 2.45.2