Skip to content

Commit

Permalink
Adding dependency install and caching modules
Browse files Browse the repository at this point in the history
Courtesy of ChatGPT
  • Loading branch information
ESteanes committed Jul 21, 2024
1 parent f04f338 commit 8f06751
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
with:
go-version: '1.21.5'

- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod download

- name: Build
run: go build -v ./...

Expand Down

0 comments on commit 8f06751

Please sign in to comment.