build(deps-dev): bump @babel/preset-react from 7.24.7 to 7.25.7 #47
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: | |
paths: | |
- "**/*.ts" | |
- "**/*.js" | |
- "package.json" | |
- "package-lock.json" | |
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 pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm 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 |