Skip to content

Commit

Permalink
Added playwright tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Oct 21, 2023
1 parent 1372fc6 commit 4425e66
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,35 @@ jobs:
uses: codecov/[email protected]
with:
flags: frontend

frontend-test-playwright:
name: "Frontend test playwright"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Cache NPM dependencies"
uses: actions/[email protected]
with:
path: "~/.npm"
key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }}
restore-keys: |
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }}
npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-
npm-dependencies-${{ runner.os }}-
- name: "Install NPM dependencies"
run: |
npm ci
- name: "Run tests"
run: |
npm run _test:frontend-playwright
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit 4425e66

Please sign in to comment.