Skip to content

Commit af5ca69

Browse files
committed
fix(chore): add lint stage in ci
1 parent eb91655 commit af5ca69

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.github/workflows/deactivate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ concurrency:
1515
jobs:
1616
kontinuous:
1717
uses: socialgouv/workflows/.github/workflows/use-ks-gh-deactivate.yaml@v1
18-
secrets: inherit
18+
secrets: inherit

.github/workflows/unit-tests.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ concurrency:
1010
group: unit-tests-${{ github.ref }}
1111

1212
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+
1337
backend:
1438
name: Backend unit tests
1539
runs-on: ubuntu-latest
@@ -231,12 +255,6 @@ jobs:
231255
name: frontend-coverage
232256
path: packages/frontend/coverage
233257

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-
240258
- name: Publish backend code coverage
241259
uses: codecov/codecov-action@v4
242260
with:
@@ -250,10 +268,3 @@ jobs:
250268
fail_ci_if_error: true
251269
token: ${{ secrets.CODECOV_TOKEN }}
252270
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

Comments
 (0)