-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (30 loc) · 897 Bytes
/
ci.yml
File metadata and controls
35 lines (30 loc) · 897 Bytes
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
on: [push, pull_request]
name: CI
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-18.04, macos-10.15]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Unit Test
run: |
make test && make coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
- name: Install xdev
run: |
git clone https://github.com/xuperchain/xdev.git && cd xdev && make build && echo "${PWD}/bin" >> $GITHUB_PATH
# go get does not work because of go mod replace
- name: Run Contract Example test
run: |
make example-test