build(coverage): bumping coveralls action version #1796
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: Node.js CI | |
on: | |
push: | |
branches: [ master, vNext, '[0-9]+.[0-9]+.x' ] | |
pull_request: | |
branches: [ master, vNext, '[0-9]+.[0-9]+.x' ] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 #set credentials for every repository on the computer --global, so `New command` CLI tests pass | |
- run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 # Inbuilt cache for npm and yarn packages installation | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install packages | |
run: yarn --frozen-lockfile | |
- name: Test | |
run: | | |
yarn config set scripts-prepend-node-path auto | |
yarn test | |
- name: Generate coverage | |
if: matrix.node-version == '20.x' | |
run: yarn coverage | |
- name: Publish to coveralls.io | |
if: matrix.node-version == '20.x' | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ github.token }} |