-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 1.08 KB
/
coveralls.yml
File metadata and controls
36 lines (31 loc) · 1.08 KB
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
name: Coveralls
on:
push:
branches:
- master
- develop
jobs:
install-and-coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: install
run: yarn --network-timeout 600000
- name: yarn add coveralls
run: |
yarn add -D coveralls
yarn run test --coverage && cat ./coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}