Skip to content

Goponents release v1.16.1 #128

Goponents release v1.16.1

Goponents release v1.16.1 #128

Workflow file for this run

name: CI
on: [pull_request]
concurrency:
group: ci_${{ github.head_ref }}
cancel-in-progress: true
jobs:
library:
name: Library Build & Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ./node_modules
key: library-npm-${{ hashFiles('package-lock.json') }}
- name: Read .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ env.NVMRC }}
- name: Install npm Packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Run Production Build
run: npm run build_lib
- name: Run Tests
run: npm run test_lib:ci
- name: Run Tests & Upload Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: ${{github.workspace}}/projects/coverage/lcov.info:lcov