diff options
author | Benjamin Chausse <19275615+ChausseBenjamin@users.noreply.github.com> | 2019-12-31 17:05:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-31 17:05:55 -0500 |
commit | c22ba3d24dae4a625c04b20b45002654a7325fb7 (patch) | |
tree | 54b9836640d70334d722c6e6c233fe901e9f6a44 | |
parent | 018a4c5dd2aded63ae2561a51c96b2c7bda89ada (diff) |
Create go.yml
-rw-r--r-- | .github/workflows/go.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..14bd4f2 --- /dev/null +++ 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 . |