Skip to content

Commit

Permalink
ci: added unit test job (#72)
Browse files Browse the repository at this point in the history
* ci: added unit test job

* ci: added unit test job
  • Loading branch information
baiwusanyu-c committed Aug 14, 2023
1 parent 2d796c4 commit 99aba96
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 🌈 Unit Test

on:
push:
branches:
- main

pull_request:
branches:
- main

workflow_dispatch:

jobs:
unit-test_and_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install
run: pnpm install --no-frozen-lockfile

- name: lint
run: pnpm run lint

- name: unit test
run: pnpm run test
5 changes: 4 additions & 1 deletion components/Icon/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"compilerOptions": {
"noImplicitAny": true,
"strict": true,
"declaration": true
"declaration": true,
"lib": [
"dom"
]
},
"include": ["src/**/*.ts", "src/**/*.svelte"],
"exclude": ["node_modules/*", "**/*.spec.ts"]
Expand Down

0 comments on commit 99aba96

Please sign in to comment.