2019-11-14 07:08:18 +03:00
|
|
|
name: Go
|
2021-09-28 11:34:29 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
2019-11-14 07:08:18 +03:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-28 11:34:29 +03:00
|
|
|
- uses: actions/checkout@v2
|
2019-11-14 07:08:18 +03:00
|
|
|
|
2021-09-28 11:34:29 +03:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
2019-11-14 07:08:18 +03:00
|
|
|
with:
|
2021-09-28 11:34:29 +03:00
|
|
|
go-version: 1.17
|
2019-11-14 07:08:18 +03:00
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
2021-09-28 11:34:29 +03:00
|
|
|
GO111MODULE=off go get -v -t -d ./...
|
2019-11-14 07:08:18 +03:00
|
|
|
if [ -f Gopkg.toml ]; then
|
|
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
|
|
dep ensure
|
|
|
|
fi
|
|
|
|
- name: Build
|
2021-09-28 11:34:29 +03:00
|
|
|
run: GO111MODULE=off go build -v ./...
|