forked from iotexproject/iotex-core
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.42 KB
/
ci.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
name: ci
on:
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
packages: write
env:
GO111MODULE: on
jobs:
ci:
name: ci flow
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
# with:
# submodules: recursive
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.5
cache: false
- name: Build Go
run: go build ./...
# - name: Error Check
# uses: reviewdog/action-golangci-lint@v2
# with:
# golangci_lint_flags: "--disable-all -E errcheck"
# tool_name: errcheck
# level: info
- name: Run Test
id: unittest
shell: bash
run: |
go install golang.org/x/lint/golint@master
go install github.com/dave/courtney@latest
go mod tidy
golint -set_exit_status $(go list ./... | grep -v /vendor/ | grep -v /explorer/idl/ | grep -v /api/idl/)
#go get -u github.com/dave/courtney@038390a12707e2d91979d2ca77a71597f4afe400
./go.test.sh
#make test
go test -run=XXX -bench=. $(go list ./crypto)
bash <(curl -s https://codecov.io/bash)
- name: Make Minicluster
if: github.event.pull_request.merged == true
id: minicluster
shell: bash
run: |
make minicluster