Update CSS for Drodown and add test cases #122
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: 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 |