Skip to content

Commit 6909fba

Browse files
committed
Create lint-and-check.yml CI workflow
1 parent bf82af2 commit 6909fba

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/lint-and-check.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Lint and Check
5+
6+
on:
7+
- push
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/cache@v4
15+
with:
16+
path: '**/node_modules'
17+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
18+
- name: Install packages
19+
run: yarn install
20+
- name: Check formatting
21+
run: yarn dprint check
22+
- name: Check lints
23+
run: yarn lint
24+
- name: Check types
25+
run: yarn build --noEmit

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"scripts": {
1414
"build": "tsc",
1515
"fmt": "dprint fmt",
16-
"fmt:check": "dprint fmt --check",
17-
"lint": "oxlint",
18-
"typecheck": "tsc --noEmit"
16+
"lint": "oxlint"
1917
},
2018
"devDependencies": {
2119
"dprint": "^0.47.5",

0 commit comments

Comments
 (0)