From 48cef443edf9a0b738f03d5c629539b03a4215ba Mon Sep 17 00:00:00 2001 From: Bengt Wegner <87223648+Petzys@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:08:30 +0200 Subject: [PATCH] Chore: Create GH Actions go testing workflow --- .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..ebe7965 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Install dependencies + run: go get . + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...