Skip to content

Add CI workflow for Node.js project #1

Add CI workflow for Node.js project

Add CI workflow for Node.js project #1

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install
run: npm ci
- name: Type Check
run: npx tsc --noEmit
- name: Lint
run: npx eslint . --ext ts,tsx --max-warnings 0
- name: Build
run: npm run build
- name: Tests
run: npm run test -- --run
if: hashFiles('src/**/*.test.*') != ''