From 5355e60bf1d96fff9d95f7ef77176033794b6e6c Mon Sep 17 00:00:00 2001 From: William Date: Wed, 15 Nov 2023 21:40:53 -0700 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d1a538e..41621c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,24 +5,20 @@ on: pull_request: branches: [ main, master ] jobs: - test: - timeout-minutes: 60 + playwright: + name: 'Playwright Tests' runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.39.0-jammy steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Install npm dependencies - run: npm install --save-dev playwright --force - - name: Install Playwright Browsers - run: npx playwright install - - name: Run Playwright tests - run: npx playwright test - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 - \ No newline at end of file + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci --force + - name: Install npm dependencies + run: npm install --save-dev playwright --force + - name: Run your tests + run: npx playwright test +