Skip to content

Merge pull request #5741 from kiva/MP-1178-fe-hydration-error-on-my-k… #9232

Merge pull request #5741 from kiva/MP-1178-fe-hydration-error-on-my-k…

Merge pull request #5741 from kiva/MP-1178-fe-hydration-error-on-my-k… #9232

Workflow file for this run

name: Ui Tests
on:
push:
branches:
- main
- next
pull_request:
branches:
- main
- next
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
cache-name: cache-dependencies
with:
path: |
~/.cache
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Update NPM to v7
run: npm install -g npm@7
- name: Install dependencies
run: npm ci --prefer-offline
- name: Run Lint
run: npm run lint
- name: Run Unit Tests
run: npm run unit
- name: Merge test coverage reports
run: npm run coverage:merge
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: 'test/coverage/lcov.info'