Skip to content

Commit

Permalink
Collect coverage in e2e tests (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Dec 4, 2023
1 parent 02707f2 commit bf8bbc1
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:

- name: Build plugin
run: npm run build
env:
WP_DEVTOOL: source-map

- name: Configure WordPress version
run: |
Expand Down Expand Up @@ -72,6 +74,14 @@ jobs:
- name: Run tests
run: npm run test:e2e
env:
COLLECT_COVERAGE: ${{ matrix.wp == 'latest' }}

- name: Upload code coverage report
uses: codecov/codecov-action@v3.1.4
with:
file: artifacts/e2e-coverage/coverage/lcov.info
flags: e2e

- name: Archive debug artifacts (screenshots, HTML snapshots)
uses: actions/upload-artifact@v3
Expand Down
Loading

0 comments on commit bf8bbc1

Please sign in to comment.