-
Notifications
You must be signed in to change notification settings - Fork 112
97 lines (89 loc) · 2.44 KB
/
master-actions.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: go-iost CI
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
push:
branches:
- master
jobs:
# Mac_Test:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - run: |
# rm -rf /usr/local/bin/go
# rm -rf /usr/local/bin/gofmt
# brew install [email protected]
# go version
# brew install golangci-lint
# brew upgrade golangci-lint
# go mod vendor
# HOMEBREW_NO_AUTO_UPDATE=1 brew install git-lfs
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
# git lfs pull
# make vmlib_install
# make build
# PATH=$HOME/bin:$PATH make lint
# make test
# Docker_Test:
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.18
#
# - run: |
# go mod vendor
# docker pull iostio/iost-dev:3.7.1
# echo ${{ secrets.DOCKERHUBPWD }} | docker login --username ${{ secrets.DOCKERHUBID }} --password-stdin
# git lfs pull
# make docker_build
# make docker_lint
# make docker_test
#
# E2E_Test:
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.18
#
# - run: |
# go mod vendor
# docker pull iostio/iost-dev:3.7.1
# echo ${{ secrets.DOCKERHUBPWD }} | docker login --username ${{ secrets.DOCKERHUBID }} --password-stdin
# git lfs pull
# make e2e_test
E2E_Test_Local:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- run: |
git lfs pull
make e2e_test_local
Linux_Test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- run: |
git lfs pull
make vmlib_install
make build
GOBIN=/usr/local/bin/ make lint-tool
golangci-lint version
PATH=/usr/local/bin/:$PATH make lint
make test