Added UI Tests #22
Workflow file for this run
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: UI Tests | |
on: [push, pull_request] | |
jobs: | |
ui_test: | |
name: UI Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ps-version: | |
- '8.0.5' | |
- '8.1.3' | |
- 'nightly' | |
env: | |
PS_VERSION: ${{ matrix.ps-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.1.0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Build | |
run: npm install && npm run build | |
- name: Start containers | |
run: | | |
docker-compose -f "docker-compose.yml" up -d --build | |
while ! nc -z localhost 8000; do sleep 1; done; | |
working-directory: tests/UI/ | |
- name: Install dependencies | |
run: npm ci | |
working-directory: tests/UI/ | |
- name: Install Playwright Browsers | |
run: npx playwright install chromium --with-deps | |
working-directory: tests/UI/ | |
- name: Run Playwright tests | |
run: npx playwright test | |
working-directory: tests/UI/ | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: tests/UI/reports/ | |
retention-days: 30 |