Skip to content

Commit 22f1240

Browse files
run lint and typecheck on ci
ISSUE: CLDSRVCLT-2
1 parent 0c59ad5 commit 22f1240

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,33 @@ permissions:
1111
packages: write
1212

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

1842
steps:
1943
- name: Checkout code
@@ -46,6 +70,7 @@ jobs:
4670
test-metadata-backend:
4771
name: Test with Scality metadata backend
4872
runs-on: ubuntu-latest
73+
needs: lint
4974
permissions:
5075
contents: read
5176
packages: write

0 commit comments

Comments
 (0)