Skip to content

Commit b786e41

Browse files
committed
Add CI and format
1 parent f582cec commit b786e41

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

.github/workflows/format.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push]
2+
name: Format
3+
jobs:
4+
format:
5+
name: Format
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: oven-sh/setup-bun@v1
10+
- run: bun install
11+
- run: bun run format:check

.github/workflows/test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push]
2+
name: Test
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: oven-sh/setup-bun@v1
10+
- run: bun install
11+
- run: bun run test

.github/workflows/typecheck.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push]
2+
name: Typecheck
3+
jobs:
4+
typecheck:
5+
name: Typecheck
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: oven-sh/setup-bun@v1
10+
- run: bun install
11+
- run: bun run typecheck

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ openapi-static-validator spec.json > validate.js
3333
## Development
3434

3535
To publish the package:
36-
- Change version in `package.json`
37-
- Commit the change and tag it
38-
- Run `npm publish`
36+
37+
- Change version in `package.json`
38+
- Commit the change and tag it
39+
- Run `npm publish`

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test": "bun test",
1010
"test:update": "bun test --update-snapshots",
1111
"format": "prettier ./ --ignore-unknown --write",
12+
"format:check": "prettier ./ --ignore-unknown --list-different",
1213
"build": "bun build ./src/cli.ts --compile --outfile ./dist/cli",
1314
"typecheck": "tsc --noEmit",
1415
"prepublish": "bun run build"

0 commit comments

Comments
 (0)