Merge pull request #21 from lenchv/v.1.1.2 #51
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: test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
node-version: [14.x, 16.x, '20.x'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run tests on Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
npm install | |
npm run test | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, '20.x'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Coverage on Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
npm install | |
npm run test | |
npm run coverage -- -t ${{secrets.CODECOV_TOKEN}} | |
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} |