From 739eab19f4e0264022977a9fd7239792af0a9e97 Mon Sep 17 00:00:00 2001 From: Cole Snodgrass Date: Mon, 6 May 2024 13:31:32 -0700 Subject: [PATCH] add go.yml github workflow --- .github/workflows/go.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..3331631 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: "Test" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup go + uses: actions/setup-go@v5 + with: + go-version: '1.22.2' + + - name: Build + run: make build + + - name: Test + run: make test +