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!"