Skip to content

Commit 666f83b

Browse files
author
Jon M
committed
feat: add CI workflow linting
1 parent bf93efe commit 666f83b

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint and Format Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
check:
13+
name: Check code quality
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: oven-sh/setup-bun@v1
18+
19+
- name: Install dependencies
20+
run: bun install
21+
22+
- name: Check code quality
23+
run: bun run check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"lint": "eslint .",
1010
"lint:fix": "eslint . --fix",
1111
"format": "prettier --write .",
12-
"format:check": "prettier --check ."
12+
"format:check": "prettier --check .",
13+
"check": "prettier --check . && eslint ."
1314
},
1415
"dependencies": {
1516
"@astrojs/check": "^0.9.4",

0 commit comments

Comments
 (0)