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