fix: node version #10
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: Build and test | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: node-modules-${{ hashfiles('**/package-lock.json') }} | |
- name: Github checkout | |
uses: actions/checkout@v4 | |
- name: Setup node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '14.16' | |
- name: Install NPM dependencies | |
run: npm i [email protected] -g && npm i | |
- name: Compile Typescript files | |
run: tsc | |
- name: Execute unit tests | |
run: npm run coverage | |
- name: Publish to coveralls.io | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./reports/coverage/lcov.info |