ci: exécute vitest dans le build Docker (RUN pnpm test) au lieu d'un bind-mount
Build & Deploy / build (push) Successful in 12s
Build & Deploy / build (push) Successful in 12s
This commit is contained in:
@@ -16,11 +16,8 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Tests (vitest)
|
||||
run: |
|
||||
docker run --rm -v "$PWD/DataSentinel":/app -w /app node:22-alpine \
|
||||
sh -c 'corepack enable && pnpm install --frozen-lockfile && pnpm test'
|
||||
|
||||
# Les tests vitest tournent pendant le build Docker (RUN pnpm test) :
|
||||
# pas de bind-mount (incompatible docker-in-docker du runner).
|
||||
- name: Build & push image
|
||||
run: |
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user