Skip to content

Commit 3db124c

Browse files
ci: check format and lint
1 parent 7bf0f4a commit 3db124c

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

.drone.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@ trigger:
99
- pull_request
1010

1111
steps:
12+
- name: install
13+
image: node:22.14-alpine3.21
14+
commands:
15+
- cd api/
16+
- npm ci
17+
18+
- name: format
19+
image: node:22.14-alpine3.21
20+
commands:
21+
- cd api/
22+
- npm run check-format
23+
24+
- name: lint
25+
image: node:22.14-alpine3.21
26+
commands:
27+
- cd api/
28+
- npm run lint
29+
1230
- name: wait services initialization
1331
image: bash
1432
commands:
@@ -17,10 +35,7 @@ steps:
1735
- name: api test
1836
image: node:22.14-alpine3.21
1937
commands:
20-
- apk update && apk upgrade
21-
- node -v
2238
- cd api/
23-
- npm ci
2439
- npm run ci-test-token
2540
- npm run ci-test-native
2641

@@ -50,6 +65,24 @@ trigger:
5065
- pull_request
5166

5267
steps:
68+
- name: install
69+
image: node:22.14-alpine3.21
70+
commands:
71+
- cd watcher/
72+
- npm ci
73+
74+
- name: format
75+
image: node:22.14-alpine3.21
76+
commands:
77+
- cd watcher/
78+
- npm run check-format
79+
80+
- name: lint
81+
image: node:22.14-alpine3.21
82+
commands:
83+
- cd watcher/
84+
- npm run lint
85+
5386
- name: wait services initialization
5487
image: bash
5588
commands:
@@ -58,10 +91,7 @@ steps:
5891
- name: watcher test
5992
image: node:22.14-alpine3.21
6093
commands:
61-
- apk update && apk upgrade
62-
- node -v
6394
- cd watcher/
64-
- npm ci
6595
- npm run ci-test-token
6696
- npm run ci-test-native
6797

0 commit comments

Comments
 (0)