From cf7b15f1a4c2b79eef23a23c50bd5f24d9862a51 Mon Sep 17 00:00:00 2001 From: theodor1289 Date: Mon, 23 Nov 2020 16:19:34 +0000 Subject: [PATCH] replaced travis with github actions --- .github/workflows/go.yml | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 000000000..127c62896 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,49 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build Client + runs-on: ubuntu-18.04 + env: + GOOS: linux + GO111MODULE: on + GOPRIVATE: github.com/ustiugov/fccd-orchestrator + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.14 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Check Syntax + uses: Jerome1337/golint-action@v1.0.2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Setup Node + run: source ./scripts/travis/setup_node.sh + + - name: Build + run: go build -race -v -a ./... + + - name: Unit Tests + run: | + make test-subdirs + make test + make test-man-bench