Skip to content

Commit 59c334d

Browse files
authored
Merge branch 'master' into fix/buildkit-in-gh
2 parents 7d2474c + 5175e2d commit 59c334d

File tree

133 files changed

+6151
-4360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+6151
-4360
lines changed

.anonymizer/.yarn/releases/yarn-4.9.1.cjs renamed to .anonymizer/.yarn/releases/yarn-4.9.2.cjs

Lines changed: 273 additions & 279 deletions
Large diffs are not rendered by default.

.anonymizer/.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ compressionLevel: mixed
22

33
enableGlobalCache: false
44

5-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
5+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

.anonymizer/config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -212,20 +212,6 @@ dump:
212212
expected_exit_code: -1
213213
executable: "node"
214214

215-
args:
216-
- "./dist/user-structure--fonction.js"
217-
columns:
218-
- name: "fonction"
219-
skip_on_null_input: true
220-
- name: "Cmd"
221-
params:
222-
driver:
223-
name: "json"
224-
validate: true
225-
timeout: 3600s
226-
expected_exit_code: -1
227-
executable: "node"
228-
229215
args:
230216
- "./dist/user-structure--email.js"
231217
columns:

.anonymizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": ".anonymizer",
3-
"packageManager": "yarn@4.9.1",
3+
"packageManager": "yarn@4.9.2",
44
"scripts": {
55
"build": "tsc",
66
"dev": "tsc --watch",

.anonymizer/ts-transformers/user-structure--fonction.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

.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

.husky/pre-commit

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
# Linting
5+
echo "🔍 Linting et formatting..."
6+
if ! npx lint-staged; then
7+
echo "❌ Erreur de linting - commit annulé"
8+
exit 1
9+
fi
510

6-
## if sh -c ': >/dev/tty' >/dev/null 2>/dev/null; then exec </dev/tty; yarn node-talisman --githook pre-commit -i; else yarn node-talisman --githook pre-commit; fi
11+
# Sécurité
12+
echo "🛡️ Vérification sécurité..."
13+
if sh -c ': >/dev/tty' >/dev/null 2>/dev/null; then
14+
exec </dev/tty
15+
if ! yarn node-talisman --githook pre-commit -i; then
16+
echo "❌ Vérification sécurité échouée"
17+
exit 1
18+
fi
19+
else
20+
if ! yarn node-talisman --githook pre-commit; then
21+
echo "❌ Vérification sécurité échouée"
22+
exit 1
23+
fi
24+
fi
25+
26+
echo "✅ Commit validé!"

.talismanrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fileignoreconfig:
2+
- filename: _docs/dev/0.run-local-env.md
3+
checksum: 855b6f29ace746c86597d36382dbe7e40f771137734e3bf5eb53c948d6592a74
4+
- filename: yarn.lock
5+
checksum: 08b8e5aa34abdbe885acc6d64dd693197644d94d976f0e1832760c3ed227c836
6+
version: "1.0"

.yarn/releases/yarn-4.9.1.cjs renamed to .yarn/releases/yarn-4.9.2.cjs

Lines changed: 273 additions & 279 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ plugins:
1010
- path: .yarn/plugins/@yarnpkg/plugin-fetch.cjs
1111
spec: "https://raw.githubusercontent.com/devthejo/yarn-plugin-fetch/master/bundles/@yarnpkg/plugin-fetch.js"
1212

13-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
13+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

0 commit comments

Comments
 (0)