Skip to content

Run QAWolf Tests

Run QAWolf Tests #162

Workflow file for this run

name: Run QAWolf Tests
on:
schedule:
- cron: "5 6 * * *"
workflow_dispatch:
jobs:
run-qa-wolf-tests:
runs-on: macos-14
environment: "QA Wolf Test Environment"
env:
BRANCH_ID: "TEST: ${{ secrets.BRANCH_ID }}"
COOKIES_ENCRYPTION_KEY: ${{ secrets.COOKIES_ENCRYPTION_KEY }}
QAWOLF_API_KEY: ${{ secrets.QAWOLF_API_KEY }}
QAWOLF_ENVIRONMENT_ID: ${{ secrets.QAWOLF_ENVIRONMENT_ID }}
QAWOLF_TEAM_ID: ${{ secrets.QAWOLF_TEAM_ID }}
REPLAY_METADATA_TEST_RUN_TITLE: "QAWolf Mac ARM {{ github.ref }}"
RECORD_REPLAY_METADATA_SOURCE_COMMIT_TITLE: "🍍: ${{ github.event.head_commit.author.name }}"
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Update browsers
run: npx replayio update
- name: Sync QAWolf Test Files
run: npx ts-node src/sync.ts
- name: Decrypt CNN cookies file
run: openssl enc -aes-256-cbc -d -in cookies/cnnCookies.json.enc -out cookies/cnnCookies.json -pbkdf2 -iter 100000 -pass pass:"$COOKIES_ENCRYPTION_KEY"
- name: Decrypt Wix cookies file
run: openssl enc -aes-256-cbc -d -in cookies/wixCookies.json.enc -out cookies/wixCookies.json -pbkdf2 -iter 100000 -pass pass:"$COOKIES_ENCRYPTION_KEY"
- name: Decrypt Replit cookies file
run: openssl enc -aes-256-cbc -d -in cookies/replitCookies.json.enc -out cookies/replitCookies.json -pbkdf2 -iter 100000 -pass pass:"$COOKIES_ENCRYPTION_KEY"
- name: Decrypt Bubble cookies file
run: openssl enc -aes-256-cbc -d -in cookies/bubbleCookies.json.enc -out cookies/bubbleCookies.json -pbkdf2 -iter 100000 -pass pass:"$COOKIES_ENCRYPTION_KEY"
- name: Run QAWolf Tests
run: npx ts-node src/runPlaywright.ts