Skip to content

Commit

Permalink
Add workflow hashicorp/go-discover/acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 70b45b3 commit c8d323f
Showing 1 changed file with 212 additions and 0 deletions.
212 changes: 212 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
name: hashicorp/go-discover/acceptance
on:
push:
branches:
- master
env:
ALICLOUD_ACCESS_KEY: xxxxphH9
ALICLOUD_REGION: xxxxst-1
ALICLOUD_SECRET_KEY: xxxxyMFH
ARM_CLIENT_ID: xxxxe408
ARM_CLIENT_SECRET: xxxxUa59
ARM_ENVIRONMENT: xxxxlic
ARM_SUBSCRIPTION_ID: xxxx5864
ARM_TENANT_ID: xxxx52ec
AWS_ACCESS_KEY_ID: xxxxC2HH
AWS_CLI_GPG_KEY: xxxx--\n
AWS_REGION: xxxxst-2
AWS_SECRET_ACCESS_KEY: xxxx8mOF
DIGITALOCEAN_TOKEN: xxxx58a5
GOOGLE_CREDENTIALS: xxxxom"}
GOOGLE_PROJECT: xxxxests
GOOGLE_ZONE: xxxxt1-b
PACKET_AUTH_TOKEN: xxxxsvCb
PACKET_PROJECT: xxxx50e5
SCALEWAY_ORGANIZATION: xxxxce0e
SCW_ACCESS_KEY: xxxxTZDQ
SCW_DEFAULT_PROJECT_ID: xxxxce0e
SCW_SECRET_KEY: xxxxed2f
SERVICE_GO_DISCOVER_TESTS_ROLE_ARN: xxxxests
TENCENTCLOUD_SECRET_ID: xxxxIero
TENCENTCLOUD_SECRET_KEY: xxxx1bdQ
TENCENT_REGION: xxxxzhou
TF_VAR_packet_project: xxxx50e5
TRITON_ACCOUNT: xxxxcorp
TRITON_KEY_ID: xxxx2:33
TRITON_URL: xxxx.com
jobs:
go-test:
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
steps:
- uses: actions/checkout@v3.5.0
- name: restore_cache
uses: actions/cache@v3.3.1
with:
key: go-mod-test-v1-{{ checksum "go.sum" }}
restore-keys: go-mod-test-v1-{{ checksum "go.sum" }}
path: "/go/pkg/mod"
- name: Run go tests
run: |-
mkdir -p /tmp/test-results
gotestsum -f standard-verbose --junitfile ${TEST_RESULTS}/results.xml .
- uses: actions/upload-artifact@v3.1.1
with:
path: "/tmp/test-results"
- run: go mod download
- name: Check go mod tidy
run: |-
go mod tidy
git diff --exit-code
alicloud-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: aliyun
provider-go-test-dir: aliyun
aws-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: aws
provider-go-test-dir: aws
azure-vmss-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: azure-vmss
provider-go-test-dir: azure
provider-go-test-tags: TestVmScaleSetAddrs
azurerm-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: azurerm
provider-go-test-dir: azure
provider-go-test-tags: TestTagAddrs
digitalocean-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: digitalocean
provider-go-test-dir: digitalocean
gce-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: gce
provider-go-test-dir: gce
k8s-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: k8s
provider-go-test-dir: k8s
provider-tf-apply: terraform apply -target google_container_cluster.cluster -auto-approve && terraform apply -auto-approve
packet-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: packet
provider-go-test-dir: packet
scaleway-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: scaleway
provider-go-test-dir: scaleway
triton-provider:
if: # GitHub does not currently support regular expressions inside if conditions
# github.ref != 'refs/heads//pull\/[0-9]+/'
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/circleci/golang:1.13.15
needs:
- go-test
steps:
- uses: actions/checkout@v3.5.0
# Ensure parameter if_key_exists is set correctly
- name: Install SSH key
uses: shimataro/ssh-key-action@v2.5.0
with:
key: "${{ secrets.CIRCLE_CI_SSH_KEY }}"
name: circle_ci_id_rsa
known_hosts: "${{ secrets.CIRCLE_CI_KNOWN_HOSTS }}"
if_key_exists: fail
- uses: "./.github/actions/acctest"
with:
provider-test-infra-dir: triton
provider-go-test-dir: triton

0 comments on commit c8d323f

Please sign in to comment.