fix: deny modifying the object prototype (#1698) #1885
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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: 'Node.js CI' | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x, 14.x, 16.x] | |
steps: | |
- uses: 'actions/[email protected]' | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: 'actions/[email protected]' | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: 'npm ci' | |
- name: Lint | |
if: ${{ matrix.node-version != '10.x' }} | |
run: 'npm run lint' | |
- name: Markdownlint | |
if: ${{ matrix.node-version != '10.x' }} | |
run: 'npm run markdownlint' | |
- run: 'npm run build' | |
- run: 'DISABLE_LOGGING=1 npm run cover' | |
- run: 'npx nyc report --reporter=lcov > coverage.lcov && npx codecov' |