From 1d02f70f195945895980d7c2d96ba687b5f55ebc Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Fri, 8 Mar 2024 16:34:33 -0800 Subject: [PATCH] GH workflow to test. Signed-off-by: Artur Souza --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..cc2d609 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +# Copyright (c) 2024 Diagrid Inc. +# Licensed under the MIT License. + +name: "Build and testing" + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + name: Build and Test + runs-on: ubuntu-latest + timeout-minutes: 30 + services: + etcd: + image: quay.io/coreos/etcd:v3.5.5 + env: + ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379 + ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 + ports: + - 2379:2379 + env: + GOOS: linux + GOARCH: amd64 + GOPROXY: https://proxy.golang.org + steps: + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + cache: 'false' + - name: Run test + run: go test