build(deps-dev): bump playwright from 1.47.0 to 1.47.1 #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Business Logic (e2e tests) | |
on: pull_request | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# Use repository secrets as environment variables | |
- name: Set up environment variables | |
run: | | |
echo "Using secrets for testing" | |
echo "TEST_PASSWORD=${{ secrets.TEST_PASSWORD }}" >> $GITHUB_ENV | |
echo "TEST_USERNAME=${{ secrets.TEST_USERNAME }}" >> $GITHUB_ENV | |
echo "BASE_URL=${{ secrets.BASE_URL }}" >> $GITHUB_ENV | |
echo "REACT_APP_SERVER_URL=${{ secrets.REACT_APP_SERVER_URL }}" >> $GITHUB_ENV | |
# Cache node_modules to speed up subsequent runs | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
# Optional: Add a step to debug node and Playwright version | |
- name: Debug Node and Playwright Versions | |
run: | | |
node -v | |
npx playwright --version | |
- name: Run Playwright tests | |
run: npx playwright test --grep "@business-logic" | |
# Upload Playwright report for easy access to results | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 7 |