Files
a9c379f7-e22b-477a-a916-e9e…/.gitea/workflows/build.yml
2026-03-10 16:40:51 +00:00

47 lines
1.0 KiB
YAML

name: Code Check
on:
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '24'
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
node-modules-
- name: Install dependencies
if: steps.cache-node.outputs.cache-hit != 'true'
run: npm ci --prefer-offline --no-audit
timeout-minutes: 5
- name: TypeScript check
run: npm run typecheck
timeout-minutes: 3
- name: ESLint check
run: npm run lint
timeout-minutes: 3
- name: Upload build log on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: build-log
path: build.log