From 741c900330914e3e3cefbd1902155c1f781af38f Mon Sep 17 00:00:00 2001 From: hasan-py Date: Fri, 11 Oct 2024 23:05:06 +0600 Subject: [PATCH] updated --- .github/workflows/playwright-test.yml | 42 +++++++++++++++------------ .github/workflows/test.yml | 12 -------- 2 files changed, 23 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/playwright-test.yml b/.github/workflows/playwright-test.yml index 40ec4e2..e76ed38 100644 --- a/.github/workflows/playwright-test.yml +++ b/.github/workflows/playwright-test.yml @@ -10,25 +10,29 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - name: Log current directory - run: pwd - - name: Node Version Setup - uses: actions/checkout@v4 - uses: actions/setup-node@v4 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 with: - node-version: lts/* + node-version: "20" + - name: Navigate to client folder working-directory: ./client - run: pwd - # - 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@v4 - # if: ${{ !cancelled() }} - # with: - # name: playwright-report - # path: playwright-report/ - # retention-days: 30 + + - 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@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 11d5613..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Test - -on: - push: - branches: - - master - -jobs: - test: - runs-on: ubuntu-latest - steps: - - run: echo "Hello, world!"