Skip to content

Commit

Permalink
Add component test (Vitest) (#681)
Browse files Browse the repository at this point in the history
* Add component test (Vitest)

* Fix compile error
  • Loading branch information
huchenlei authored Aug 29, 2024
1 parent e6b6465 commit e942da0
Show file tree
Hide file tree
Showing 7 changed files with 638 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/vitest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Vitest Tests

on:
push:
branches:
- main
- master
- 'dev*'
pull_request:
branches:
- main
- master
- 'dev*'

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Run Vitest tests
run: npm run test:component
Loading

0 comments on commit e942da0

Please sign in to comment.