Skip to content

Update module github.com/hashicorp/go-tfe to v1 #131

Update module github.com/hashicorp/go-tfe to v1

Update module github.com/hashicorp/go-tfe to v1 #131

Workflow file for this run

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 ./...