From 0e5303da623e186951c8ff01614f688ca09bcd16 Mon Sep 17 00:00:00 2001 From: nocci Date: Tue, 30 Dec 2025 11:02:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci(workflow):=20add=20lint=20job?= =?UTF-8?q?=20to=20build=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - introduce lint job in build.yml for code quality checks - ensure lint job runs before docker job - setup Node.js and install dependencies for ESLint --- .forgejo/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index cb83fb0..c15f8c5 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -6,7 +6,22 @@ on: - main jobs: + lint: + runs-on: self-hosted + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + run: npm ci + - name: Run ESLint + run: npm run lint + docker: + needs: lint runs-on: self-hosted steps: - name: Set up Docker Buildx