Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #154 from equinix/vendor-tests
Browse files Browse the repository at this point in the history
Add build (and vendoring) tests to pull requests
  • Loading branch information
displague authored Jul 15, 2021
2 parents bd4c88e + 926ec62 commit 9c257c8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/acctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- stable
terraform:
- '0.12.29'
- '0.13.3'
- '0.13.6'
steps:

- name: Set up Go
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Go Tests
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go mod download
- name: Build
run: go build -v .
- name: TF tests
run: go test -v -cover -parallel 4 ./metal

2 changes: 0 additions & 2 deletions metal/resource_metal_project_ssh_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package metal

import (
"fmt"
"log"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
Expand Down Expand Up @@ -44,7 +43,6 @@ func TestAccMetalProjectSSHKey_Basic(t *testing.T) {
t.Fatalf("Cannot generate test SSH key pair: %s", err)
}
cfg := metalProjectSSHKeyConfig_Basic(rs, publicKeyMaterial)
log.Printf(cfg)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down
1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ github.com/aws/aws-sdk-go/service/sts/stsiface
# github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
github.com/bgentry/go-netrc/netrc
# github.com/davecgh/go-spew v1.1.1
## explicit
github.com/davecgh/go-spew/spew
# github.com/fatih/color v1.7.0
github.com/fatih/color
Expand Down

0 comments on commit 9c257c8

Please sign in to comment.