From 1ec89b44b5e9c6368cd0d65533c4316235c5512d Mon Sep 17 00:00:00 2001 From: hughcrt Date: Mon, 15 Apr 2024 16:02:13 -0300 Subject: [PATCH] test --- .github/workflows/run-tests.yml | 22 +++++++++++----------- playwright.config.ts | 32 -------------------------------- 2 files changed, 11 insertions(+), 43 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a7bd9a72..3b48a610 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Cache node modules id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: @@ -23,21 +23,21 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- - - name: Cache Playwright binaries - uses: actions/cache@v3 - id: playwright-cache - with: - path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-playwright- + # - name: Cache Playwright binaries + # uses: actions/cache@v4 + # id: playwright-cache + # with: + # path: ~/.cache/ms-playwright + # key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} + # restore-keys: | + # ${{ runner.os }}-playwright- - name: Install dependencies run: npm ci - name: Install Playwright - if: steps.playwright-cache.outputs.cache-hit != 'true' - run: npx playwright install --with-deps + # if: steps.playwright-cache.outputs.cache-hit != 'true' + run: npx playwright install - name: Start backend env: diff --git a/playwright.config.ts b/playwright.config.ts index 5516f6e9..b2b74736 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -22,8 +22,6 @@ export default defineConfig({ forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 2 : 0, - /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: "html", // reporter: process.env.CI ? "github" : "html", @@ -60,36 +58,6 @@ export default defineConfig({ name: "teardown", testMatch: /global\.teardown\.ts/, }, - - // { - // name: "firefox", - // use: { ...devices["Desktop Firefox"] }, - // }, - - // { - // name: "webkit", - // use: { ...devices["Desktop Safari"] }, - // }, - - /* Test against mobile viewports. */ - // { - // name: 'Mobile Chrome', - // use: { ...devices['Pixel 5'] }, - // }, - // { - // name: 'Mobile Safari', - // use: { ...devices['iPhone 12'] }, - // }, - - /* Test against branded browsers. */ - // { - // name: 'Microsoft Edge', - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, - // }, - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - // }, ], /* Run your local dev server before starting the tests */