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 5f7f386
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/playwright.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: install PW
run: npx cross-env HOME=/root npx playwright install chromium firefox webkit --with-deps
# - 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
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 5f7f386

Please sign in to comment.