blob: 6be175f23bbca11575c3a8dabc09fedf0a34e0cd [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 .
- 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: Cyclo
run: |
go get github.com/fzipp/gocyclo
bash scripts/ci/goCycloChecker.sh
- name: build
run: |
bash -x scripts/build/local.sh
- name: UT
run: |
bash -x scripts/ut_test_in_docker.sh
- name: Integration Testing
run: |
bash -x scripts/integration_test.sh