Skip to content

Commit 80d90e6

Browse files
committed
ci: setup unit test
1 parent e0753ea commit 80d90e6

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly

.github/workflows/autofix.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: autofix.ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
autofix:
13+
uses: sxzz/workflows/.github/workflows/autofix.yml@v1
14+
permissions:
15+
contents: read

.github/workflows/unit-test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Unit Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1
14+
with:
15+
skip-test: true

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
"dev": "tsdown --watch",
4343
"build": "tsdown",
4444
"update": "vscode-ext-gen --scope npmx",
45-
"check": "eslint . --fix && tsc --noEmit",
46-
"vscode:prepublish": "npm run build",
45+
"check": "npm run lint:fix && npm run typecheck",
46+
"lint": "eslint .",
47+
"lint:fix": "eslint . --fix",
48+
"typecheck": "tsc --noEmit",
49+
"vscode:prepublish": "npm run update && npm run build",
4750
"publish": "vsce publish --no-dependencies",
4851
"pack": "vsce package --no-dependencies"
4952
},

0 commit comments

Comments
 (0)