test: add test for 'about' youtube modal #1502
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: Code coverage | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
USE_BABEL_PLUGIN_ISTANBUL: 1 | |
SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
jobs: | |
test-with-coverage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Run install | |
run: npm ci | |
- run: npx playwright install | |
- name: Run test | |
run: npm test | |
- name: Run end-to-end tests | |
run: npm test | |
- run: npx nyc report --reporter=lcovonly | |
- name: Upload to Coveralls | |
if: always() | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |