Skip to content

codecov-action@v4

codecov-action@v4 #299

name: Node.js CI (liquidity-rewards/)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: liquidity-rewards
strategy:
matrix:
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: liquidity-rewards/package-lock.json
- run: npm ci
- run: npm install [email protected] -g
- run: truffle compile
- run: truffle test
- run: truffle run coverage
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true