From 559f1804e6dc03798136b3c575a9d9ff97259d55 Mon Sep 17 00:00:00 2001 From: victorsteele428 Date: Sun, 22 Nov 2026 05:38:54 +0600 Subject: [PATCH] ci: collect isolated ESLint diagnostic result --- .gitea/workflows/datastack-eslint-ci.yml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/datastack-eslint-ci.yml diff --git a/.gitea/workflows/datastack-eslint-ci.yml b/.gitea/workflows/datastack-eslint-ci.yml new file mode 100644 index 0000000..87df431 --- /dev/null +++ b/.gitea/workflows/datastack-eslint-ci.yml @@ -0,0 +1,33 @@ +name: DataStack ESLint CI +on: + push: + branches: [main] + paths: + - '.gitea/workflows/datastack-eslint-ci.yml' + workflow_dispatch: + +jobs: + eslint-windows: + runs-on: windows-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + with: + github-server-url: https://dev.ivib.cc + - name: Install dependencies in isolated checkout + shell: powershell + run: | + $ErrorActionPreference = 'Stop' + node --version + npm --version + npm install --package-lock-only --no-audit --no-fund + if ($LASTEXITCODE -ne 0) { throw 'Temporary lock regeneration failed' } + npm ci --no-audit --no-fund + if ($LASTEXITCODE -ne 0) { throw 'npm ci failed' } + - name: Run full ESLint + shell: powershell + run: | + $ErrorActionPreference = 'Stop' + npm run lint + if ($LASTEXITCODE -ne 0) { throw 'ESLint check failed' } + Write-Output 'DATASTACK_ESLINT_PASS'