From 7836bb4d9f8cb7b3af58b995e5b266e7864a9433 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Wed, 6 Nov 2024 20:36:44 +0000 Subject: [PATCH] fix --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51da71300..62c18bf3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,33 @@ concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true jobs: + playwright: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Checkout BackOffice + uses: actions/checkout@v4 + with: + repository: inseefr/bauhaus-back-office + path: ./bauhaus-back-office + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Install dependencies + run: npm ci --force + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - uses: adambirds/docker-compose-action@v1.5.0 + with: + compose-file: './bauhaus-back-office/compose.yml' + test-command: 'npx playwright test' + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} + with: I + name: playwright-report + path: playwright-report/ + retention-days: 30 test-build: name: Test & Build & Deploy Sonar report runs-on: ubuntu-latest