ci: collect isolated ESLint diagnostic result
DataStack ESLint CI / eslint-windows (push) Successful in 5m15s
DataStack ESLint CI / eslint-windows (push) Successful in 5m15s
This commit is contained in:
1 parent
ff1333d02c
commit
559f1804e6
1 file changed
+33
@@ -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'
|
||||||
Reference in new issue
Block a user