Skip to content

Commit

Permalink
Playwright yarn (#52)
Browse files Browse the repository at this point in the history
* [playwright] chore: Update to use yarn

* [playwright] chore: Update to use yarn
  • Loading branch information
helloitsdave authored Jun 3, 2024
1 parent d463ac9 commit 086fdc3
Show file tree
Hide file tree
Showing 3 changed files with 1,851 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/frontend-service-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
- name: Install Playwright
run: |
cd ./playwright
npm ci
npx playwright install chromium
yarn
yarn playwright install chromium
- name: Run Playwright Tests
run: |
cd ./playwright
npm run test
yarn test
- name: Stop service in docker
run: |
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/playwright-production-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Install Playwright
run: |
npm ci
npx playwright install chromium
yarn
yarn playwright install chromium
- name: Run Playwright Tests
run: |
npm run test:production
yarn test:production
- name: Upload Playwright Report to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
Expand All @@ -45,7 +45,7 @@ jobs:
java-version: 17

- name: Load test report history
uses: actions/checkout@v3
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
Expand All @@ -61,7 +61,7 @@ jobs:
allure_results: ./playwright/allure-results

- name: Publish test report
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit 086fdc3

Please sign in to comment.