Skip to content

Commit

Permalink
Initial commit of go.mod and Go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iandees committed Dec 20, 2024
1 parent 03519a7 commit 7342d97
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go_tests.yaml
Original file line number Diff line number Diff line change
@@ -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 ./...
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/ziprecruiter/h3-go

go 1.21.12

0 comments on commit 7342d97

Please sign in to comment.