Skip to content

Commit

Permalink
add setup go
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-labry committed Apr 3, 2023
1 parent ff1a967 commit 1ceb4de
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/go-retryablehttp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@ jobs:
runs-on: ubuntu-latest
env:
TEST_RESULTS: "/tmp/test-results"
strategy:
matrix:
go-version:
- 1.14.2
steps:
- name: Setup go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 1.14.2
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- run: mkdir -p $TEST_RESULTS/go-retryablyhttp
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
- name: Setup cache for go modules
uses: actions/cache@v3
- name: restore_cache
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
key: go-mod-v1-{{ checksum "go.sum" }}
restore-keys: go-mod-v1-{{ checksum "go.sum" }}
path: "/go/pkg/mod"
- run: go mod download
- name: Run go format
run: |-
Expand Down

0 comments on commit 1ceb4de

Please sign in to comment.