From 5af1363b21900a63a8c713bd0b7eb75fea9db338 Mon Sep 17 00:00:00 2001 From: Ahash Sritharan Date: Thu, 26 Oct 2023 20:45:52 +0200 Subject: [PATCH] Updated Pipeline --- .github/workflows/XrmEx.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/XrmEx.yml b/.github/workflows/XrmEx.yml index 37c265a..0fd873a 100644 --- a/.github/workflows/XrmEx.yml +++ b/.github/workflows/XrmEx.yml @@ -7,8 +7,6 @@ env: jobs: XrmEx: runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.39.0-jammy concurrency: group: ${{ github.ref }} @@ -16,11 +14,8 @@ jobs: steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Fetch all history - - - name: Install dependencies - run: npm ci + - uses: volta-cli/action@v3 + - run: npm ci - name: Dependencies audit run: npm audit --audit-level=moderate @@ -34,6 +29,17 @@ jobs: - name: Lint check run: npm run lint:check + - name: Setup Node.js for Playwright + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies for Playwright + run: npm ci + + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests run: | if [ "${{ github.repository }}" == "AhashSritharan/Xrm-Ex" ]; then