Qa/initialize automation #14
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: Playwright Tests | |
on: | |
push: | |
branches: | |
- main | |
- development # Add any other branches you want to trigger tests on | |
pull_request: | |
branches: | |
- main | |
- development | |
jobs: | |
run-e2es: # Job name for end-to-end tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: npm ci # Using npm ci for clean installs | |
- name: Install Playwright browsers | |
run: npx playwright install --with-deps # Install Playwright browsers | |
- name: Set BASE_URL | |
run: echo "BASE_URL=https://${{ github.ref_name }}.vercel.app" >> $GITHUB_ENV # Set BASE_URL based on branch | |
- name: Run tests | |
run: npx playwright test # Execute Playwright tests |