Skip to content

chore: Test File Setup and Cards, Columns, Quote tests #2

chore: Test File Setup and Cards, Columns, Quote tests

chore: Test File Setup and Cards, Columns, Quote tests #2

Workflow file for this run

name: Run Jest Puppeteer Tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Set BASE_URL environment variable
run: |
BRANCH_NAME=$(echo "${GITHUB_REF##*/}")
BASE_URL="https://${BRANCH_NAME}--adobe.aem.live/"
echo "BASE_URL=${BASE_URL}" >> $GITHUB_ENV
- name: Run Jest Puppeteer tests
run: npm test
env:
BASE_URL: ${{ env.BASE_URL }}