build: update workflows to account for upcoming 2.x maintance branch #130
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
# Collects coverage report using Coveralls | |
name: Coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- beta | |
- 2.x | |
jobs: | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install | |
run: npm ci | |
- name: Test | |
run: npm test | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |