Skip to content

Commit

Permalink
Add go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkevmcd committed May 7, 2024
1 parent e5d8068 commit 346a72d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Go

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:

Expand All @@ -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 .
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/bigkevmcd/go-cachewrapper

go 1.22.2

0 comments on commit 346a72d

Please sign in to comment.