Skip to content

Commit 1772ddf

Browse files
committed
Update CI
1 parent 09ab6a8 commit 1772ddf

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/code_check.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: pnpm/action-setup@v2
11+
with:
12+
version: 8
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: pnpm
17+
- run: pnpm install
18+
- name: Lint
19+
run: pnpm run lint
20+
typecheck:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v2
25+
with:
26+
version: 8
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: pnpm
31+
- run: pnpm install
32+
- name: Typecheck
33+
run: pnpm run typecheck

.github/workflows/tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919
cache: pnpm
2020
- run: pnpm install
21-
- name: Typecheck
22-
run: pnpm typecheck
2321
- name: Test
2422
run: pnpm test

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build": "rimraf dist && tsc -p tsconfig.build.json && babel dist/esm -d dist/cjs --out-file-extension .cjs",
2222
"test": "vitest",
2323
"typecheck": "tsc",
24+
"lint": "eslint . && prettier . --check",
2425
"repl": "vite-node script/repl.ts"
2526
},
2627
"homepage": "https://github.com/fabon-f/vremel#readme",

0 commit comments

Comments
 (0)