From d8f39cecf1ad55091366569fe3f130223e3ba07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Fern=C3=A1ndez-Victorio?= Date: Mon, 17 May 2021 20:10:39 +0100 Subject: [PATCH] Create build.yml Action to test and build --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a4021c0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +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.16 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...