Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 49 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,62 @@
name: CI

on:
push:
branches: [master]
branches: [ main, master ]
pull_request:
branches: [master]
branches: [ main, master ]

jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run typecheck

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run lint

test:
name: Test & Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run test
- name: Upload Coverage Artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-summary
path: coverage/

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"preview": "vite preview",
"lint": "node ./node_modules/eslint/bin/eslint.js \"src/**/*.{ts,tsx}\"",
"test": "vitest run --coverage",
"test:watch": "vitest"
"test:watch": "vitest",
"typecheck": "tsc --noEmit -p ."
},
"dependencies": {
"@hookform/resolvers": "^5.9.1",
Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default defineConfig({
'src/hooks/useUploadQueue.ts',
'src/components/UploadQueue/index.ts',
'src/components/UploadQueue/UploadQueue.tsx',
'src/pages/DistributionDashboard.tsx',
'src/utils/financialTermsValidation.ts',
'src/hooks/useFinancialTermsForm.ts',
'src/components/FinancialTermsForm/FinancialTermsForm.tsx',
Expand Down
Loading