Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
6fe52fdb
Commit
6fe52fdb
authored
Jun 16, 2020
by
madengji
Committed by
33cn
Jun 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add github action build
parent
34c89f73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
0 deletions
+139
-0
build.yml
.github/workflows/build.yml
+139
-0
No files found.
.github/workflows/build.yml
0 → 100644
View file @
6fe52fdb
name
:
build
on
:
[
push
,
pull_request
]
jobs
:
check_fmt
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
Intsall Golangci-lint
run
:
|
# add executables installed with go get to PATH
# TODO: this will hopefully be fixed by
# https://github.com/actions/setup-go/issues/14
export PATH=${PATH}:`go env GOPATH`/bin
go get -u golang.org/x/tools/cmd/goimports
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.18.0
go get -u mvdan.cc/sh/cmd/shfmt
go get -u mvdan.cc/sh/cmd/gosh
-
name
:
Lint
run
:
|
make checkgofmt && make fmt_go
make linter
unit-test
:
name
:
unit-test
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
unit-test
run
:
make test
coverage
:
name
:
coverage
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
ut coverage
run
:
make coverage
-
name
:
cover report
if
:
success()
run
:
bash <(curl -s https://codecov.io/bash)
autotest
:
name
:
autotest
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
deploy
run
:
|
make build_ci
make autotest dapp=all
ci_base
:
name
:
ci_base
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
deploy
run
:
|
make build_ci
make docker-compose && make docker-compose-down
ci_paracross
:
name
:
ci_paracross
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
deploy
run
:
|
make build_ci
make docker-compose dapp=paracross
make docker-compose-down dapp=paracross
ci_x2ethereum
:
name
:
ci_paracross
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang
uses
:
actions/setup-go@v2
with
:
go-version
:
1.13
id
:
go
-
name
:
set go env
run
:
export PATH=${PATH}:`go env GOPATH`/bin
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
deploy
run
:
|
make docker-compose dapp=x2ethereum
make docker-compose-down dapp=x2ethereum
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment