diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fd0795df0f7..e900fd3ac87 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,16 +19,16 @@ jobs: - 1.19.x - 1.20.x steps: - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 1 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Test shell: bash # SDK is currently being released with go 1.18, this cannot perform @@ -63,16 +63,16 @@ jobs: - os: macos-latest go-version: 1.16.x steps: - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 1 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Test shell: bash run: make unit-old-go-race-cover @@ -102,22 +102,23 @@ jobs: - os: windows-latest go-version: 1.12.x steps: - - name: Setup Go env - shell: bash - run: | - echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV - echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + path: go/src/github.com/aws/aws-sdk-go - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} + cache: false - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 1 - path: go/src/github.com/aws/aws-sdk-go + - name: Setup Go env + shell: bash + run: | + echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV + echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH - name: Test shell: bash