diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 1f3b542..b50d9dc 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -16,26 +16,7 @@ jobs: with: node-version: 18 - # Cache playwright and dependencies - # @see https://playwrightsolutions.com/playwright-github-action-to-cache-the-browser-binaries/ - - name: Get installed Playwright version - id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV - - name: Cache playwright binaries - uses: actions/cache@v3 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - - run: npm ci - - run: npx playwright install --with-deps - if: steps.playwright-cache.outputs.cache-hit != 'true' - - run: npx playwright install-deps - if: steps.playwright-cache.outputs.cache-hit != 'true' - - run: npm run build - - - name: Run playwright tests - run: npx playwright test --config ./tests/config/playwright.config.ts + - run: npx playwright install --with-deps + - run: npx playwright test --config ./tests/config/playwright.config.ts