@@ -10,6 +10,30 @@ concurrency:
10
10
group : unit-tests-${{ github.ref }}
11
11
12
12
jobs :
13
+ lint :
14
+ name : Lint code
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
21
+
22
+ - name : Set up Node.js lts
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : " lts/*"
26
+ cache : " yarn"
27
+
28
+ - name : Install dependencies
29
+ run : yarn install --frozen-lockfile
30
+
31
+ - name : Build common dependencies
32
+ run : yarn workspace @domifa/common build
33
+
34
+ - name : Lint all packages
35
+ run : yarn lint
36
+
13
37
backend :
14
38
name : Backend unit tests
15
39
runs-on : ubuntu-latest
@@ -231,12 +255,6 @@ jobs:
231
255
name : frontend-coverage
232
256
path : packages/frontend/coverage
233
257
234
- # - name: Download portail-usagers coverage
235
- # uses: actions/download-artifact@v2
236
- # with:
237
- # name: portail-usagers
238
- # path: packages/portail-usagers/coverage
239
-
240
258
- name : Publish backend code coverage
241
259
uses : codecov/codecov-action@v4
242
260
with :
@@ -250,10 +268,3 @@ jobs:
250
268
fail_ci_if_error : true
251
269
token : ${{ secrets.CODECOV_TOKEN }}
252
270
directory : packages/frontend/coverage
253
-
254
- # - name: Publish portail-usagers code coverage
255
- # uses: codecov/codecov-action@v2
256
- # with:
257
- # fail_ci_if_error: true
258
- # token: ${{ secrets.CODECOV_TOKEN }}
259
- # directory: packages/portail-usagers/coverage
0 commit comments