Skip to content

Commit

Permalink
replaced travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amariucaitheodor committed Nov 23, 2020
1 parent 75a4486 commit cf7b15f
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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

0 comments on commit cf7b15f

Please sign in to comment.