tests #68
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
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 12 1 * *' | |
name: tests | |
jobs: | |
Test: | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- '14' | |
- '16' | |
- '18' | |
- '20' | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Set git to turn off auto-converting line endings | |
run: git config --global core.autocrlf false | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm test -- --coverage=true | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 |