2020-11-25 17:21:13 +08:00
|
|
|
name: pr-ci-build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-09-08 17:22:18 +08:00
|
|
|
branches: [master, V5.3, V5.4]
|
2020-11-25 17:21:13 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-26 17:50:56 +08:00
|
|
|
- uses: actions/checkout@v2
|
2020-11-25 21:31:48 +08:00
|
|
|
|
2021-05-26 17:50:56 +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
|
|
|
|
- name: install-golint
|
|
|
|
run: go get -u golang.org/x/lint/golint
|
|
|
|
|
|
|
|
- name: Go-linter
|
|
|
|
run: ./check.sh
|
|
|
|
|
|
|
|
- name: SonarQube Scan
|
|
|
|
uses: kitabisa/sonarqube-action@v1.1.0
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.SONARQUBE_HOST }}
|
|
|
|
login: ${{ secrets.SONARQUBE_TOKEN }}
|
|
|
|
projectName: rainbond
|
|
|
|
|
|
|
|
- name: Build the Docker image
|
|
|
|
env:
|
|
|
|
DISABLE_GOPROXY: true
|
|
|
|
run: VERSION=${{ github.base_ref }}-dev ./release.sh all
|