From 213834118f6233fa40f32f97df252705b56151de Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 23 Dec 2025 17:54:18 +0530 Subject: [PATCH] Add lint and build gitea workflow --- .gitea/workflows/lint-and-build.yml | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 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 00000000..62251e01 --- /dev/null +++ b/.gitea/workflows/lint-and-build.yml @@ -0,0 +1,56 @@ +name: Lint and Build + +on: + push: + branches: + pull_request: + branches: + - master + - dev + paths: + - 'src/**' + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run Prettier format check + run: yarn prettier --check . + + build: + name: Build + runs-on: ubuntu-latest + needs: lint + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build project + run: yarn build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: dist/ + retention-days: 7