Skip to content

Commit

Permalink
Trying playwright directly on ci instead of sauce.
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinsingla committed Apr 25, 2024
1 parent 4db8a42 commit 9c1bb47
Showing 1 changed file with 25 additions and 31 deletions.
56 changes: 25 additions & 31 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,32 @@ jobs:
host: localhost
port: 3306
timeout: 60
- name: Connect to saucelabs
uses: saucelabs/sauce-connect-action@v2
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ github.run_id }}
- name: Saucectl RUN
uses: saucelabs/saucectl-run-action@v4
with:
sauce-username: ${{ secrets.SAUCE_USERNAME }}
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnel-name: ${{ github.run_id }}
# - name: Install dependencies
# run: npm ci
# working-directory: tests/e2e
# - name: Install Playwright Browsers
# run: npx playwright install --with-deps
# working-directory: tests/e2e
# - name: Run Playwright tests
# run: npx playwright test
# working-directory: tests/e2e
# - uses: actions/upload-artifact@v3
# if: always()
# - name: Connect to saucelabs
# uses: saucelabs/sauce-connect-action@v2
# with:
# name: playwright-report
# path: tests/e2e/test-report/
# retention-days: 30
# - uses: actions/upload-artifact@v3
# if: always()
# username: ${{ secrets.SAUCE_USERNAME }}
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
# tunnelName: ${{ github.run_id }}
# - name: Saucectl RUN
# uses: saucelabs/saucectl-run-action@v4
# with:
# name: test-results
# path: tests/e2e/test-results/
# retention-days: 30
# sauce-username: ${{ secrets.SAUCE_USERNAME }}
# sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
# tunnel-name: ${{ github.run_id }}
- name: Install dependencies
run: npm ci
working-directory: tests/e2e
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: tests/e2e
- name: Run Playwright tests
run: npx playwright test
working-directory: tests/e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: tests/e2e/test-report/
retention-days: 30
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

0 comments on commit 9c1bb47

Please sign in to comment.