fix(ci): update users test, fix workflow paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: ci-api
|
name: ci-api
|
||||||
|
|
||||||
# CI pour control-plane/api (Go) : build, vet, tests, puis publication de l'image
|
# CI pour le backend (Go) : vet, tests, build, puis publication de l'image
|
||||||
# Docker sur push vers main.
|
# Docker sur push vers main.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -59,8 +59,8 @@ jobs:
|
|||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./control-plane/api
|
context: ./backend
|
||||||
file: ./control-plane/api/Dockerfile
|
file: ./backend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/vitrine-api:latest
|
${{ secrets.DOCKERHUB_USERNAME }}/vitrine-api:latest
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: ci-web
|
name: ci-web
|
||||||
|
|
||||||
# CI pour web (Vite/React) : install, typecheck, tests, build, puis publication
|
# CI pour le frontend (Vite/React) : install, lint, build, puis publication
|
||||||
# de l'image Docker sur push vers main.
|
# de l'image Docker sur push vers main.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: web
|
working-directory: frontend
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -26,15 +26,15 @@ jobs:
|
|||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "24"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Lint
|
||||||
run: npm run typecheck
|
run: npm run lint
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
@@ -54,8 +54,8 @@ jobs:
|
|||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./web
|
context: ./frontend
|
||||||
file: ./web/Dockerfile
|
file: ./frontend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/vitrine-web:latest
|
${{ secrets.DOCKERHUB_USERNAME }}/vitrine-web:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user