Skip to content

Commit

Permalink
Revert "feat(e2e): build content image use sharded workers"
Browse files Browse the repository at this point in the history
This reverts commit 3ac4978.
  • Loading branch information
pgurusinga committed Mar 21, 2024
1 parent 3ac4978 commit ce33f64
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/build-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,44 @@ jobs:

verify-local-e2e:
needs: [get-content-file]
uses: ./.github/workflows/e2e-test.yml
with:
e2e-target: local
secrets:
GERICHTSFINDER_ENCRYPTION_KEY: ${{ secrets.GERICHTSFINDER_ENCRYPTION_KEY }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cached-checkout-install
- name: Get Playwright version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages[''].devDependencies['@playwright/test'])")" >> $GITHUB_ENV

- name: Download Content File
uses: actions/download-artifact@v4
with:
name: content-file

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium

- id: fetchLatestImageApp
run: ./docker.sh --appFromImage && rsync -a ./a2j-app/* ./

- name: Run Playwright e2e tests
env:
GERICHTSFINDER_ENCRYPTION_KEY: "${{ secrets.GERICHTSFINDER_ENCRYPTION_KEY }}"
run: CMS=FILE npx playwright test

- name: Upload Playwright test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

build-push-content-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ce33f64

Please sign in to comment.