diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 6e02161..0ef28c3 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -6,36 +6,40 @@ on: - main jobs: - lint: - name: Code Quality + qa: + name: Code Quality Node ${{ matrix.node }} runs-on: [self-hosted, Linux] + strategy: + fail-fast: false + matrix: + node: [20, 22, 24] steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node + - name: Setup Node ${{ matrix.node }} uses: actions/setup-node@v4 with: - node-version-file: .nvmrc + node-version: ${{ matrix.node }} - name: Install dependencies run: npm ci - - name: Lint source files - run: npm run lint - - name: Run Prettier run: npm run prettier + - name: Lint source files + run: npm run lint + - name: Check types run: npm run typecheck - - name: Run tests - run: npm run test:coverage - - name: Build package run: npm run build + - name: Run tests with coverage + run: npm run test:coverage + - name: 'Report Coverage' - if: always() + if: matrix.node == 22 && always() uses: davelosert/vitest-coverage-report-action@v2 diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index d4d7f76..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -import localazyConfig from '@localazy/prettier-config'; - -/** @type {import('prettier').Config} */ -const config = { - ...localazyConfig, -}; - -export default config; diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index b8dca91..9b6075b 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,8 +1,8 @@ import { defineConfig } from 'vitepress'; -import { head } from './config/en/head'; -import { nav } from './config/en/nav'; -import { sidebar } from './config/en/sidebar'; -import { markdown } from './config/markdown'; +import { head } from './config/en/head.js'; +import { nav } from './config/en/nav.js'; +import { sidebar } from './config/en/sidebar.js'; +import { markdown } from './config/markdown.js'; export default defineConfig({ title: 'CDN Client', diff --git a/docs/.vitepress/config/en/nav.ts b/docs/.vitepress/config/en/nav.ts index aee1b94..4f1a5e4 100644 --- a/docs/.vitepress/config/en/nav.ts +++ b/docs/.vitepress/config/en/nav.ts @@ -1,4 +1,4 @@ -import { DefaultTheme } from 'vitepress/theme'; +import type { DefaultTheme } from 'vitepress/theme'; import { version } from '../../../../package.json'; export const nav = (): DefaultTheme.NavItem[] => [ diff --git a/docs/.vitepress/theme/components/FooterLinks.vue b/docs/.vitepress/theme/components/FooterLinks.vue index 469b6b6..acd94ae 100644 --- a/docs/.vitepress/theme/components/FooterLinks.vue +++ b/docs/.vitepress/theme/components/FooterLinks.vue @@ -6,14 +6,43 @@