blob: a12019a4fd1445ab4e79e8433e5a510f189d012e [file] [log] [blame]
name: Merge check
on: [push, pull_request]
jobs:
build:
name: Merge check
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: go build -v github.com/apache/servicecomb-kie/cmd/kieserver
- name: Fmt
run: |
bash scripts/ci/formatChecker.sh
- name: Misspell
run: |
go get -u github.com/client9/misspell/cmd/misspell
bash scripts/ci/formatChecker.sh
- name: Lint
run: |
go get -u golang.org/x/lint/golint
bash scripts/ci/goLintChecker.sh
- name: Cyclo
run: |
go get github.com/fzipp/gocyclo
bash scripts/ci/goCycloChecker.sh
- name: secure
run: |
go get github.com/securego/gosec/cmd/gosec
bash -x scripts/travis/goSecureChecker.sh
- name: UT
run: |
go test $(go list ./... | grep -v third_party | grep -v examples) -cover -covermode atomic -coverprofile coverage.out