Skip to content

Commit 5196602

Browse files
committed
Add GH Actions workflow to typecheck, lint and build
1 parent 3d4664b commit 5196602

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/check.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-node@v6
12+
with:
13+
cache: 'yarn'
14+
15+
- name: Install dependencies
16+
run: yarn --immutable
17+
18+
- name: Typecheck
19+
run: yarn typecheck
20+
21+
- name: Lint
22+
run: yarn lint
23+
24+
- name: Build
25+
run: yarn build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "0.1.0",
55
"scripts": {
66
"dev": "vite",
7+
"typecheck": "vue-tsc --noEmit",
78
"build": "vue-tsc -b && vite build",
89
"preview": "vite preview",
910
"lint": "eslint .",

0 commit comments

Comments
 (0)