From c857974e1b6f5e18d3e5b4a0654bc35623179858 Mon Sep 17 00:00:00 2001 From: KRISHNA S <52206372+krishnapollu@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:44:26 -0500 Subject: [PATCH] Create parallel-jobs.yml --- .github/workflows/parallel-jobs.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/parallel-jobs.yml diff --git a/.github/workflows/parallel-jobs.yml b/.github/workflows/parallel-jobs.yml new file mode 100644 index 0000000..9d70f64 --- /dev/null +++ b/.github/workflows/parallel-jobs.yml @@ -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 + +