Skip to content

Commit

Permalink
Create parallel-jobs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnapollu authored Jan 31, 2024
1 parent 813d91b commit c857974
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/parallel-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Playwright Service Tests
on:
workflow_dispatch:
permissions:
contents: 'write'
id-token: 'write'
jobs:
service-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
env:
# Access token and regional endpoint for Microsoft Playwright Testing
PLAYWRIGHT_SERVICE_ACCESS_TOKEN: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_TOKEN }}
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
- name: Run Playwright tests
run: npx playwright test --config=playwright.service.config.ts --workers=20 && true

local-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test && true


0 comments on commit c857974

Please sign in to comment.