From d33dfda82636496466e791a40b3e43c382e23ae9 Mon Sep 17 00:00:00 2001 From: Mario Candela <79858889+mariocandela@users.noreply.github.com> Date: Sun, 8 May 2022 20:57:20 +0200 Subject: [PATCH] Added CI --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..ae09603 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.16 + + - name: Dependences + run: go mod download + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...