Skip to content

Commit e64a948

Browse files
authored
Merge pull request #1295 from InseeFr/4.14.0
chore: 4.14.0
2 parents 001114c + 2a9475b commit e64a948

File tree

144 files changed

+20838
-23945
lines changed

Some content is hidden

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

144 files changed

+20838
-23945
lines changed

.github/actions/generic-ci-app/action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,23 @@ runs:
77
run: |
88
rm -f package-lock.json
99
rm -rf node_modules
10+
- name: Install pnpm
11+
uses: pnpm/action-setup@v4
12+
with:
13+
version: 10
1014
- uses: actions/setup-node@v4
1115
with:
1216
node-version: 22
17+
cache: "pnpm"
1318
- name: 🏗️ Installing Dependencies
1419
shell: bash
15-
run: npm i --force
20+
run: pnpm install
1621
- name: 🧪 Running ESLint
1722
shell: bash
18-
run: npm run lint
23+
run: pnpm lint
1924
- name: 🧪 Running unit tests
2025
shell: bash
21-
run: npm run test:coverage
26+
run: pnpm test:coverage
2227
- name: 🧪 Building the application
2328
shell: bash
24-
run: npm run build
29+
run: pnpm build

.github/actions/generic-ci-documentation/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: 'Build Documentation'
22
runs:
33
using: 'composite'
44
steps:
5+
- name: Install pnpm
6+
uses: pnpm/action-setup@v4
7+
with:
8+
version: 10
59
- uses: actions/setup-node@v4
610
with:
711
node-version: 22
12+
cache: "pnpm"
813
- name: 🏗️ Generate Astro Documentation
914
shell: bash
1015
run: ./scripts/documentation-build.sh

.github/workflows/docker.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Release
22
on:
33
release:
44
types: [released]
5-
branches:
6-
- main
7-
paths-ignore:
8-
- documentation/**
95
jobs:
106
build:
117
name: Test & Build & Upload artifact
@@ -24,6 +20,12 @@ jobs:
2420
needs: build
2521
steps:
2622
- uses: actions/checkout@v4
23+
- name: Check if on main branch
24+
run: |
25+
if [ "${{ github.ref }}" != "refs/heads/main" ]; then
26+
echo "Error: Docker job can only run on main branch"
27+
exit 1
28+
fi
2729
- name: Download build
2830
id: download
2931
uses: actions/download-artifact@v4

.github/workflows/playwright.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ jobs:
1313
with:
1414
repository: inseefr/bauhaus-back-office
1515
path: ./bauhaus-back-office
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
1620
- uses: actions/setup-node@v4
1721
with:
1822
node-version: 22
23+
cache: "pnpm"
1924
- name: Install dependencies
2025
working-directory: ./e2e
21-
run: npm ci --force
26+
run: pnpm install
2227
- name: Install Playwright Browsers
2328
working-directory: ./e2e
2429
run: npx playwright install --with-deps

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ deploy.sh
2020
.DS_Store
2121
*.local
2222

23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
2723
/swagger
2824
.cache
2925

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run pre-push
4+
pnpm pre-push

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
minimum-release-age=1440

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ COPY ./ ./
88

99
RUN rm -f package-lock.json
1010
RUN rm -rf node_modules
11+
RUN npm i -g pnpm
1112

12-
RUN npm install --force && npm run build
13+
RUN pnpm install && pnpm build
1314

1415
### EXECUTION STEP ###
1516

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ The application is tested on Node.js 22.
1818
```
1919
git clone git@github.com:InseeFr/Bauhaus.git
2020
cd Bauhaus
21-
npm install
22-
npm run start
21+
pnpm install
22+
pnpm start
2323
```
2424

2525
You can run all tests suites with this command. You need to run at least once `npm run build`.
2626

2727
```shell
28-
npm run test:coverage
28+
pnpm test:coverage
2929
```
3030

3131
The following command will activate the **watch** mode, and you will be able to select a subset of tests you want to run.
3232

3333
```shell
34-
npm run test --watchAll
34+
pnpm test --watchAll
3535
```
3636

3737
## Docker
@@ -48,6 +48,6 @@ docker run -it -p 8080:8080 bauhaus:front
4848
If you are using, you should install the following dependency.
4949

5050
```
51-
npm install --global windows-build-tools
51+
pnpm install --global windows-build-tools
5252
5353
```

documentation/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ dist/
77
node_modules/
88

99
# logs
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
1310
pnpm-debug.log*
1411

1512

0 commit comments

Comments
 (0)