test implementation #9
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: Playwright Tests | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ui | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Set up environment and run tests | |
run: | | |
npm run build | |
npm start & | |
npx playwright test --reporter=dot,list | |
# Step 6: Upload Playwright report | |
- name: Upload Playwright report | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: playwright-report | |
path: ui/playwright-report/ | |
retention-days: 30 |