From 7342d976751cd2c0c2c262f696c55dc16f537d48 Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Fri, 20 Dec 2024 14:18:23 -0600 Subject: [PATCH] Initial commit of go.mod and Go workflow --- .github/workflows/go_tests.yaml | 31 +++++++++++++++++++++++++++++++ go.mod | 3 +++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/go_tests.yaml create mode 100644 go.mod diff --git a/.github/workflows/go_tests.yaml b/.github/workflows/go_tests.yaml new file mode 100644 index 0000000..fd6b7f4 --- /dev/null +++ b/.github/workflows/go_tests.yaml @@ -0,0 +1,31 @@ +name: Go Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.21.12 + + - name: Install dependencies + run: go mod tidy + + - name: Build + run: go build -v ./... + + - name: Run tests + run: go test -v ./... \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d3ddb80 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/ziprecruiter/h3-go + +go 1.21.12