-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1001 Bytes
/
build-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This workflow will do a clean install of node dependencies, build the source code, run tests, and publish java testing coverage to Coveralls
name: build-ui
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.17.0
uses: actions/setup-node@v1
with:
node-version: 14.17.0
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build, and test with "npm run test"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npm set progress=false && npm install && npm run test --coverage && node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info
working-directory: ./ui