ci: add format and lint checks

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I78b9c47c3019ebd0147471e4c6cdce796a6a6964
This commit is contained in:
raf 2026-01-22 23:29:00 +03:00
commit 0f875baa99
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

30
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Check
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run check
- run: pnpm run lint
- run: pnpm run fmt --check