Merge branch 'release/1.3.0' #134
Workflow file for this run
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: unit-tests | |
on: [push] | |
jobs: | |
jest-unit-tests: | |
name: unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
npm-${{ hashFiles('package-lock.json') }} | |
npm- | |
- name: Install JS dependencies | |
run: npm install | |
- name: Run jest tests | |
run: npm run test:coverage | |
- name: Upload test coverage to Codecov | |
uses: codecov/codecov-action@v2 |