Skip to content

Commit

Permalink
install vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Aug 30, 2024
1 parent 71071aa commit f155ef6
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ concurrency:
cancel-in-progress: true

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ import { defineConfig } from 'astro/config';
export default defineConfig({
site: 'https://example.com',
integrations: [sitemap(), tailwind({ nesting: true }), icon()],
vite: {
define: {
'import.meta.vitest': 'undefined',
},
},
});
Loading

0 comments on commit f155ef6

Please sign in to comment.