Skip to content

Commit 7bfe1a7

Browse files
committed
chore(ci): adapt workflow to test and build home app
1 parent c467f76 commit 7bfe1a7

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,24 @@ jobs:
4848
- name: Install dependencies
4949
run: npm i
5050

51-
- name: Run docker-build
51+
- name: Run docker-build for datahub
5252
run: npx nx docker-build mel-datahub
5353

54+
- name: Run docker-build for home
55+
run: npx nx docker-build home
56+
5457
- uses: docker/login-action@v1
5558
name: Login to GitHub Container Registry
5659
with:
5760
registry: ghcr.io
5861
username: ${{ github.actor }}
5962
password: ${{ secrets.GITHUB_TOKEN }}
6063

61-
- name: 'Pushing the image onto ghcr.io'
64+
- name: 'Pushing the images onto ghcr.io'
6265
if: github.ref == 'refs/heads/main'
6366
run: |
6467
docker push ghcr.io/camptocamp/mel-dataplatform/datahub:latest
68+
docker push ghcr.io/camptocamp/mel-dataplatform/home:latest
6569
6670
cypress-run:
6771
name: End-to-end tests
@@ -86,9 +90,12 @@ jobs:
8690
- name: Install dependencies
8791
run: npm i
8892

89-
- name: Run tests
93+
- name: Run tests for datahub
9094
run: npx nx e2e mel-datahub-e2e
9195

96+
- name: Run tests for home
97+
run: npx nx e2e home-e2e
98+
9299
agents:
93100
name: Nx Cloud - Agents
94101
uses: nrwl/ci/.github/workflows/[email protected]

apps/home/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"executor": "nx:run-commands",
106106
"options": {
107107
"commands": [
108-
"nx build home --base-href='/acceuil/'",
108+
"nx build home --base-href='/accueil/'",
109109
"docker build -f ./tools/docker/Dockerfile . -t ghcr.io/camptocamp/mel-dataplatform/home:latest"
110110
],
111111
"parallel": false

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"e2e:all": "nx run-many --target=e2e",
1212
"e2e:datahub": "nx e2e mel-datahub-e2e",
1313
"e2e:datahub-dev": "nx e2e mel-datahub-e2e --watch",
14+
"e2e:home": "nx e2e home-e2e",
15+
"e2e:home-dev": "nx e2e home-e2e --watch",
1416
"i18n:extract": "ngx-translate-extract -s --fi ' ' --input ./apps --output ./apps/datahub/src/assets/i18n/{en_MEL,fr_MEL}.json --clean --format json && npm run format"
1517
},
1618
"private": true,

0 commit comments

Comments
 (0)