Update module github.com/hashicorp/go-tfe to v1 #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set cache paths | |
id: go-cache-paths | |
run: | | |
echo "::set-output name=build::$(go env GOCACHE)" | |
echo "::set-output name=mod::$(go env GOMODCACHE)" | |
- name: Go cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
${{ steps.go-cache-paths.outputs.build }} | |
${{ steps.go-cache-paths.outputs.mod }} | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: Test | |
run: go test -race -v ./... |