Updated browser test config for CI
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ci-node
|
||||
timeout-minutes: 15
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Récupérer le commit
|
||||
@@ -24,7 +24,23 @@ jobs:
|
||||
set -eu
|
||||
npm ci
|
||||
npm run validate
|
||||
npx playwright install --with-deps chromium
|
||||
|
||||
- name: Installer Chromium pour les tests
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
CI: "true"
|
||||
# Allow slow CDN connections; Playwright keeps its built-in retries.
|
||||
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "180000"
|
||||
run: |
|
||||
set -eu
|
||||
npx playwright install --with-deps --only-shell chromium
|
||||
|
||||
- name: Valider les parcours navigateur et le mode hors ligne
|
||||
timeout-minutes: 5
|
||||
env:
|
||||
CI: "true"
|
||||
run: |
|
||||
set -eu
|
||||
npm run test:e2e
|
||||
|
||||
deploy:
|
||||
@@ -69,4 +85,4 @@ jobs:
|
||||
-o ConnectTimeout=10 \
|
||||
-o UserKnownHostsFile="$HOME/.ssh/known_hosts" \
|
||||
"$DEPLOY_USER@$DEPLOY_HOST" \
|
||||
"echo SSH_OK; bash /opt/pardis/deploy.sh '$SHA'"
|
||||
"echo SSH_OK; bash /opt/pardis/deploy.sh '$SHA'"
|
||||
|
||||
Reference in New Issue
Block a user