From d98546b4456b2a5e2ed52b7df27e8606aac9b753 Mon Sep 17 00:00:00 2001 From: Felipe Martin Garcia <812088+fmartingr@users.noreply.github.com> Date: Sun, 7 Aug 2022 12:30:20 +0200 Subject: [PATCH] ci: added basic build and test workflow (#3) --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..de8cb53 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,24 @@ +name: Go + +on: + push: + branches: ["latest"] + pull_request: + branches: ["latest"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test and coverage + run: go test -cover -v ./...