This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
add archival notice #2501
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 and coverage | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["14"] | |
name: Jest unit tests and coveralls push | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node ${{ matrix.node }} | |
uses: actions/setup-node@v3.7.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies and coveralls | |
run: | | |
npm ci | |
npm install coveralls | |
- name: Run unit tests and save coverage | |
run: CI=true npm test -- --coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./jest-coverage/lcov.info |