diff --git a/.github/workflows/testsE2E.yml b/.github/workflows/testsE2E.yml deleted file mode 100644 index b885252..0000000 --- a/.github/workflows/testsE2E.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Run Playwright E2E Tests - -on: - workflow_dispatch: - -jobs: - e2e-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.ref_name }} - - - name: Set TEST_URL variable - run: | - if [[ "${{ github.ref_name }}" == "staging" ]]; then - echo "TEST_URL=https://kingpanda.dev/" >> $GITHUB_ENV - elif [[ "${{ github.ref_name }}" == "master" ]]; then - echo "TEST_URL=https://kingpanda.bet.br/" >> $GITHUB_ENV - else - BRANCH_LOWER=$(echo "${{ github.ref_name }}" | tr '[:upper:]' '[:lower:]') - echo "TEST_URL=https://$BRANCH_LOWER.kingpanda-front.pages.dev" >> $GITHUB_ENV - fi - - - name: Install dependencies - run: npm install - - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - - name: Run Playwright tests - run: npx playwright test - - - name: Upload Playwright report - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-report - path: playwright-report/ - retention-days: 30