-
Notifications
You must be signed in to change notification settings - Fork 28
58 lines (47 loc) · 1.48 KB
/
coveralls.yaml
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
52
53
54
55
56
57
58
name: Coveralls
# Controls when the action will run.
on: ["push", "pull_request"]
jobs:
coverage:
name: Build
runs-on: ubuntu-latest
env:
AVAX_API: https://api.avax.network/ext/bc/C/rpc
ALCHEMY_API: ${{ secrets.ALCHEMY_API }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Datadog Agent
uses: DataDog/agent-github-action@v1
with:
api_key: ${{ secrets.DD_API_KEY }}
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v2
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.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: Installing dependencies
run: npm ci
- name: build
run: npm run build
- name: run test:coverage
run: npm run test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}