Files
rfid-database/.github/workflows/ci.yml
T

31 lines
660 B
YAML

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Reject merge conflict markers
run: |
if git grep -nE '^(<<<<<<<|>>>>>>>)' -- . \
':(exclude)package-lock.json'; then
echo "::error::Merge conflict markers found in tracked files"
exit 1
fi
echo "No conflict markers found"
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test