From 346a72d92df175f80b35a191c412455dfc9d9c1f Mon Sep 17 00:00:00 2001 From: Kevin McDermott Date: Tue, 7 May 2024 16:55:22 +0100 Subject: [PATCH] Add go.mod --- .github/workflows/go.yml | 15 ++++----------- go.mod | 3 +++ 2 files changed, 7 insertions(+), 11 deletions(-) create mode 100644 go.mod diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a3b1cba..e8f7ba1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: @@ -16,18 +16,11 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.14 + go-version: ^1.22 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - - - name: Build - run: go build -v . + uses: actions/checkout@v4 - name: Test run: go test -v . diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..90a8ef0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/bigkevmcd/go-cachewrapper + +go 1.22.2