Skip to content

Commit b424f76

Browse files
run lint and typecheck on ci
ISSUE: CLDSRVCLT-2
1 parent 27bf44b commit b424f76

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,33 @@ permissions:
1010
packages: write
1111

1212
jobs:
13+
lint:
14+
name: Lint and typecheck
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
cache: 'yarn'
26+
27+
- name: Install dependencies
28+
run: yarn install --frozen-lockfile
29+
30+
- name: TypeScript typecheck
31+
run: yarn typecheck
32+
33+
- name: Lint
34+
run: yarn lint
35+
1336
test-mongodb-backend:
1437
name: Test with MongoDB backend
1538
runs-on: ubuntu-latest
39+
needs: lint
1640

1741
steps:
1842
- name: Checkout code

0 commit comments

Comments
 (0)