name: DataStack ESLint CI on: push: branches: [main] paths: - '.gitea/workflows/datastack-eslint-ci.yml' workflow_dispatch: inputs: fa02_security_diagnostic: description: Targeted Windows patch applicability RCA only type: boolean required: false default: false jobs: eslint-windows: if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.fa02_security_diagnostic != 'true' }} 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' fa02-windows-security-diagnostic: if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.fa02_security_diagnostic == 'true' }} runs-on: windows-latest timeout-minutes: 30 steps: - uses: actions/checkout@v4 with: github-server-url: https://dev.ivib.cc persist-credentials: false - name: FA02 verify LF-normalized postinstall and native Windows File Manager shell: powershell run: | $ErrorActionPreference = 'Stop' git rev-parse HEAD git config --get core.autocrlf npm ci --no-audit --no-fund if ($LASTEXITCODE -ne 0) { throw 'LF-normalized Windows npm ci failed' } Write-Output 'FA02_WINDOWS_LF_CLEAN_INSTALL_PASS' npx.cmd --yes tsx@4.20.6 --test tests/files-manager.test.ts if ($LASTEXITCODE -ne 0) { throw 'Windows backport File Manager regression failed' } Write-Output 'FA02_WINDOWS_SECURITY_AND_FM_8_OF_8_PASS'