Skip to content

Commit

Permalink
ci: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Jun 29, 2024
1 parent a805f7e commit 22f764a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/playwright.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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: setup Playwright
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22f764a

Please sign in to comment.