Rainbond/.github/workflows/pr-ci-build.yml
2020-11-27 09:32:39 +08:00

28 lines
622 B
YAML

name: pr-ci-build
on:
pull_request:
branches: [ master, V5.3 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
- name: install-golint
run: go get -u golang.org/x/lint/golint
- name: Go-linter
run: ./check.sh
- name: Build the Docker image
env:
DISABLE_GOPROXY: true
run: VERSION=${{ github.base_ref }}-dev ./release.sh all