From 4ebdcdccbfc66ef408047ec6b2eca384a1b5ef37 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Mon, 16 Dec 2024 23:24:17 -0700 Subject: [PATCH] Add github build action --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..683cc97 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Go Build and Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.23 + + - name: Build + run: go build -v ./... + + - name: Run tests + run: go test -v ./...