84 lines
1.9 KiB
YAML
84 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 24.17.0
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24.17.0'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Check Version
|
|
run: npm run version:check
|
|
|
|
- name: Check Formatting
|
|
run: npm run format:check
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 24.17.0
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24.17.0'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Lint
|
|
run: npm run lint
|
|
|
|
typecheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 24.17.0
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24.17.0'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Type Check
|
|
run: npm run typecheck
|
|
|
|
test-and-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 24.17.0
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24.17.0'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Tests
|
|
run: npm test -- --runInBand
|
|
|
|
- name: Run Build
|
|
run: npm run build
|