diff --git a/.github/workflows/playwright-visual-ci.yml b/.github/workflows/playwright-visual-ci.yml index 412eb408..3cfc27a3 100644 --- a/.github/workflows/playwright-visual-ci.yml +++ b/.github/workflows/playwright-visual-ci.yml @@ -1,36 +1,65 @@ -name: web-new Visual Testing Pipeline +# name: web-new Visual Testing Pipeline -on: - pull_request: - paths-ignore: - - "**.md" - - "**.png" - - "**.drawio" - - "**.xlsx" +# on: +# pull_request: +# paths-ignore: +# - "**.md" +# - "**.png" +# - "**.drawio" +# - "**.xlsx" + +# jobs: +# setup-and-visual-test: +# runs-on: ubuntu-latest + +# steps: +# - name: Checkout +# uses: actions/checkout@v3 + +# - name: Use Node.js 18 +# uses: actions/setup-node@v3 +# with: +# node-version: "18.x" + +# - name: Use lerna +# run: npm install -g lerna@6.6.2 +# - name: Bootstrap +# run: lerna bootstrap --no-ci + +# - name: New Web Visual Test +# timeout-minutes: 18 +# run: | +# cd ./packages/web-new +# npm install +# npx playwright install chromium firefox +# npm run test + + +name: Playwright Tests +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] jobs: - setup-and-visual-test: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use Node.js 18 - uses: actions/setup-node@v3 - with: - node-version: "18.x" - - - name: Use lerna - run: npm install -g lerna@6.6.2 - - - name: Bootstrap - run: lerna bootstrap --no-ci - - - name: New Web Visual Test - timeout-minutes: 18 - run: | - cd ./packages/web-new - npm install - npx playwright install chromium firefox - npm run test \ No newline at end of file + 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 ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - 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 diff --git a/packages/web-new/playwright.config.js b/packages/web-new/playwright.config.js index 9e18e04c..5be645b8 100644 --- a/packages/web-new/playwright.config.js +++ b/packages/web-new/playwright.config.js @@ -14,7 +14,6 @@ ********************************************************************************/ // @ts-check const { defineConfig, devices } = require('@playwright/test'); - // require('dotenv').config(); module.exports = defineConfig({