Skip to content

Commit

Permalink
feat(ci): check typings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Dec 16, 2024
1 parent 4b11625 commit f2b6818
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -31,11 +31,17 @@ jobs:
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: pnpm

- name: Install
run: pnpm install

- name: Lint
run: pnpm lint
run: pnpm lint

- name: Astro check
run: pnpm astro sync && pnpx @astrojs/check

- name: Svelte check
run: pnpx svelte-check
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ export default defineConfig({
PUBLIC_MAX_TOKENS: envField.number({ context: 'client', access: 'public', default: 3000 }),
PUBLIC_MODERATION_INTERVAL: envField.number({ context: 'client', access: 'public', default: 2000 }),
PUBLIC_IFRAME_URL: envField.string({ context: 'client', access: 'public', optional: true }),
PUBLIC_PROMPLATE_DEMO_BASE_URL: envField.string({ context: 'client', access: 'public' }),
PUBLIC_PROMPLATE_DEMO_BASE_URL: envField.string({ context: 'client', access: 'public', default: 'https://demo.promplate.dev' }),
PUBLIC_RIGHT_ALIGN_MY_MSG: envField.boolean({ context: 'client', access: 'public', default: false }),
HEAD_SCRIPTS: envField.string({ context: 'client', access: 'public', optional: true }),
UNDICI_UA: envField.string({ context: 'server', access: 'secret', optional: true }),
@@ -37,7 +37,7 @@ export default defineConfig({
OPENAI_API_BASE_URL: envField.string({ context: 'server', access: 'secret', default: 'https://api.openai.com' }),
TRANSCRIPT_TARGET_LANG: envField.string({ context: 'server', access: 'secret', default: 'zh' }),
TRANSCRIPT_PROMPT: envField.string({ context: 'server', access: 'secret', optional: true }),
DEEPL_AUTH_TOKEN: envField.string({ context: 'server', access: 'secret' }),
DEEPL_AUTH_TOKEN: envField.string({ context: 'server', access: 'secret', optional: true }),
DEEPL_API_HOST: envField.string({ context: 'server', access: 'secret', optional: true }),
TRANSLATE_PROVIDER: envField.enum({ values: ['deepl', 'cf'], context: 'server', access: 'secret', default: 'deepl' }),
TRANSLATE_TARGET_LANG: envField.string({ context: 'server', access: 'secret', optional: true }),

1 comment on commit f2b6818

@vercel
Copy link

@vercel vercel bot commented on f2b6818 Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.