Files
4247b594-3072-4b8b-9958-c7c…/.gitea/workflows/build.yml
Nikolay Pecheniev 7129115046 Initial commit
2026-01-20 14:23:07 +02:00

50 lines
995 B
YAML

name: Code Check
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to check'
required: true
default: 'main'
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ gitea.event.inputs.branch }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 24
- name: Install dependencies
run: |
set -euo pipefail
npm ci --prefer-offline --no-audit
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: TypeScript check
run: |
set -euo pipefail
npm run typecheck
- name: ESLint check
run: |
set -euo pipefail
npm run lint
- name: Check completed
if: success()
run: echo "Typecheck and lint passed successfully"