fix: Add a condition to verify that the accept
of the request header starts with 'text'
#427
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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Node.js ${{ matrix.node-version }} | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- 18 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- run: npm test | |
# TODO: Enable again when https://github.com/istanbuljs/nyc/issues/1287 is fixed. | |
# - uses: codecov/codecov-action@v1 | |
# if: matrix.node-version == 14 | |
# with: | |
# fail_ci_if_error: true |