From de15db1ca09e617a54e2ee3694d2c3f1be3a258a Mon Sep 17 00:00:00 2001 From: Elis Popescu Date: Mon, 5 Apr 2021 15:20:16 +0300 Subject: [PATCH] Add a github workflow to build the tool --- .github/workflows/go.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 0000000..e8ef373 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,22 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: Build + run: go build -mod=vendor -ldflags "-X main.version=0.0.1" && test $(./tty-share --version) = 0.0.1