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
33 changes: 33 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: TypeScript Type Check

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

jobs:
typecheck:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Generate Convex types
run: npx convex codegen --typecheck disable

- name: Run TypeScript type check
run: npm run typecheck

- name: Run build test
run: npm run build
1 change: 0 additions & 1 deletion convex/rssQiitaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ function parseAtomEntry(entryText: string): RssArticle | null {
const link = extractAtomLink(entryText);
const id = extractText(entryText, 'id');
const published = extractText(entryText, 'published');
const content = extractText(entryText, 'content');
const authorName = extractAuthorName(entryText);

if (!title || !link) {
Expand Down
2 changes: 2 additions & 0 deletions convex/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/* These settings are not required by Convex and can be modified. */
"allowJs": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"skipLibCheck": true,
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"dev:convex": "convex dev",
"build": "tsc && vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit && cd convex && tsc --noEmit",
"typecheck:watch": "concurrently \"tsc --noEmit --watch\" \"cd convex && tsc --noEmit --watch\"",
"convex:codegen": "convex codegen"
},
"repository": {
Expand All @@ -18,7 +20,7 @@
"keywords": [],
"author": "",
"license": "MIT",
"type": "commonjs",
"type": "module",
"bugs": {
"url": "https://github.com/MrSmart00/astute-crow/issues"
},
Expand Down