commit c22ba3d24dae4a625c04b20b45002654a7325fb7 parent 018a4c5dd2aded63ae2561a51c96b2c7bda89ada Author: Benjamin Chausse <19275615+ChausseBenjamin@users.noreply.github.com> Date: Tue, 31 Dec 2019 17:05:55 -0500 Create go.yml Diffstat:
A | .github/workflows/go.yml | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go +on: [push] +jobs: + + build: + name: Build + 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: 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: Build + run: go build -v .