Update CI build setup #100
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: Code Coverage | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'latest' | |
- name: Install dependencies | |
run: yarn install | |
- name: Report coverage | |
env: | |
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}" | |
COVERALLS_GIT_BRANCH: "${{ github.ref }}" | |
COVERALLS_SERVICE_NAME: GitHub Actions | |
run: yarn run jest --coverage && yarn run coveralls --verbose < coverage/lcov.info | |