Skip to content

ci: update github action #2

ci: update github action

ci: update github action #2

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install dependencies
run: npm ci
- name: Unit tests
run: npm run test:unit
# - name: fix permissions
# run: |
# mkdir /root/.cache/ms-playwright
# chmod -R 777 /root/.cache/ms-playwright
# npx cross-env HOME=/root npx playwright install chromium firefox webkit --with-deps && \
- name: Run Playwright tests
run: npx cross-env HOME=/root npm run test:int
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 10