-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (47 loc) · 1.17 KB
/
run-ui-tests.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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'