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