Merge pull request #62 from PokeAPI/naramsim-61 #90
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: Tests | |
on: [push, pull_request] | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16, 18, 20 ] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm install -g codecov | |
- name: Build | |
run: npm run build | |
- name: Unit test | |
run: npm t | |
- name: Upload coverage | |
uses: codecov/codecov-action@v2 |