-
Notifications
You must be signed in to change notification settings - Fork 45
65 lines (54 loc) · 1.6 KB
/
test.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
59
60
61
62
63
64
65
name: Run test suite for the project
on:
pull_request:
push:
branches:
- delta
- confluence
- streamflow
- next
- master
jobs:
test:
name: Test with coverage
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
# Check https://github.com/livepeer/go-livepeer/pull/1891
# for ref value discussion
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Run linter
run: yarn lint
- name: Compile contracts
run: yarn compile
- name: 💡 Run contract tests with coverage reporting
run: yarn test:coverage
- name: Upload coverage reports
uses: codecov/codecov-action@v4
with:
files: ./coverage/lcov.info
name: ${{ github.event.repository.name }}
token: ${{ secrets.CI_CODECOV_TOKEN }}
editorconfig:
name: Run editorconfig checker
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
with:
# Check https://github.com/livepeer/go-livepeer/pull/1891
# for ref value discussion
ref: ${{ github.event.pull_request.head.sha }}
- name: Install editorconfig-checker
uses: editorconfig-checker/action-editorconfig-checker@main
- name: Run editorconfig checker against the repo
run: editorconfig-checker