add check action

This commit is contained in:
Felix Schulze 2025-05-05 11:07:25 +02:00
parent 84fa3a1507
commit 1b7bd0c531

28
.gitea/workflows Normal file
View File

@ -0,0 +1,28 @@
name: Lint
on:
pull_request:
push:
branches:
- '**' # matches every branch
jobs:
lint_and_typecheck:
name: Lint and Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run check
run: npm run check