Skip to content

Commit 3cd4ba0

Browse files
committed
add CI run
1 parent 9f1799a commit 3cd4ba0

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- '**'
8+
tags:
9+
- '!**'
10+
11+
jobs:
12+
ci:
13+
name: CI
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js 20.x
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
cache: yarn
24+
25+
- name: Install dependencies
26+
run: yarn install
27+
28+
- name: Run tests, lint and verify package integrity
29+
run: yarn run validate

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
"format": "kcd-scripts format",
8787
"lint": "kcd-scripts lint --config .eslintrc.cjs",
8888
"test": "kcd-scripts test --config jest.config.cjs",
89-
"verify": "attw --pack . && publint",
90-
"typecheck": "kcd-scripts typecheck --build",
91-
"validate": "CI=true kcd-scripts validate verify,lint,typecheck,test"
89+
"pack-and-verify": "attw --pack . && publint",
90+
"typecheck": "kcd-scripts typecheck --build --noEmit",
91+
"validate": "npm run pack-and-verify; CI=true kcd-scripts validate lint,typecheck,test"
9292
},
9393
"packageManager": "[email protected]",
9494
"resolutions": {

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "NodeNext",
55
"moduleResolution": "NodeNext",
66
"target": "esnext",
7-
"rootDir": "src",
7+
"rootDir": ".",
88
"outDir": "dist",
99
"declaration": true,
1010
"sourceMap": true,

0 commit comments

Comments
 (0)