2020-11-25 17:21:13 +08:00
|
|
|
name: pr-ci-build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-11-27 09:32:39 +08:00
|
|
|
branches: [ master, V5.3 ]
|
2020-11-25 17:21:13 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-25 21:25:34 +08:00
|
|
|
|
2020-11-25 17:21:13 +08:00
|
|
|
- name: Setup Go environment
|
|
|
|
uses: actions/setup-go@v2.1.3
|
|
|
|
with:
|
|
|
|
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
|
|
|
|
go-version: 1.13
|
2020-11-25 21:25:34 +08:00
|
|
|
- name: install-golint
|
|
|
|
run: go get -u golang.org/x/lint/golint
|
2020-11-25 21:31:48 +08:00
|
|
|
|
|
|
|
- name: Go-linter
|
2020-11-25 21:25:34 +08:00
|
|
|
run: ./check.sh
|
2020-11-25 17:21:13 +08:00
|
|
|
|
|
|
|
- name: Build the Docker image
|
|
|
|
env:
|
|
|
|
DISABLE_GOPROXY: true
|
2020-11-25 20:54:33 +08:00
|
|
|
run: VERSION=${{ github.base_ref }}-dev ./release.sh all
|