Fixed auth servers in test console on switching apis #290
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install | |
run: npm install | |
- name: Run tests | |
run: npm run test | |
end2end-tests: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install | |
run: npm install | |
- name: Compile | |
run: npx tsc -p tests\tsconfig.json | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Build static data | |
run: npm run build-mock-static-data | |
- name: Start mock server | |
run: npm run serve-website & | |
shell: bash | |
- name: Wait for the server | |
run: ./.github/scripts/wait-for-server.ps1 -HostName "http://localhost:8080" | |
shell: pwsh | |
- name: Run tests | |
run: npx playwright test tests/ --workers 1 | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: playwright-report | |
path: test-results/ | |
retention-days: 30 |