Improve typings (#86) #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage processing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
wait_for_data: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: c-hive/gha-yarn-cache@v2 | |
- name: Install dependencies | |
run: yarn install | |
- name: Wait for Playwright tests | |
continue-on-error: false | |
uses: fountainhead/[email protected] | |
id: wait-for-playwright-tests | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Playwright tests queue | |
timeoutSeconds: 600 | |
intervalSeconds: 30 | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Wait for Jest tests | |
continue-on-error: false | |
uses: fountainhead/[email protected] | |
id: wait-for-jest-tests | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Jest tests queue | |
timeoutSeconds: 600 | |
intervalSeconds: 30 | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Download Playwright test coverage artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
path: ./artifacts | |
workflow: playwright.yaml | |
workflow_conclusion: success | |
name: playwright-coverage | |
pr: ${{github.event.pull_request.number}} | |
- name: Download Jest test coverage artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
path: ./artifacts | |
workflow: jest.yaml | |
workflow_conclusion: success | |
name: jest-coverage | |
pr: ${{github.event.pull_request.number}} | |
- name: Fix paths inside coverage reports | |
run: node ./scripts/fix-paths-in-coverage-reports.cjs | |
- name: Merge all reported JSONs into one | |
run: node ./node_modules/.bin/nyc merge ./coverage-artifacts ./merged-coverage/coverage.json | |
- name: Generate report | |
run: node ./node_modules/.bin/nyc report --reporter=html --reporter=lcov --temp-dir ./merged-coverage | |
- name: Archive coverage report | |
uses: vimtor/action-zip@v1 | |
with: | |
files: ./coverage/lcov-report/ | |
dest: coverage.zip | |
- name: Upload coverage report as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: coverage.zip | |
retention-days: 1 | |
- name: Jest Lcov Reporter v2 | |
uses: lifeart/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lcov-file: ./coverage/lcov.info | |
update-comment: true | |
show-changed-files: false | |
min-coverage: 90 |