-
Notifications
You must be signed in to change notification settings - Fork 101
70 lines (66 loc) · 1.95 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches: [master]
pull_request:
permissions:
# Permission for checking out code
contents: read
jobs:
build:
name: Check & Build Provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: chmod +x ./scripts/gofmtcheck.sh
- name: gofmt Check
run: ./scripts/gofmtcheck.sh
# - name: Generate provider code
# run: go generate
# - name: Check generated code for diffs
# run: git diff --exit-code
- name: Build
run: go build -v
acceptance:
name: Acceptance Tests
needs: build
runs-on: ubuntu-latest
env:
ACI_USERNAME: 'ansible_github_ci'
ACI_PASSWORD: 'sJ94G92#8dq2hx*K4qh'
concurrency:
group: tf-aci-ci-test-${{ matrix.apic_host.name }}
cancel-in-progress: false
strategy:
fail-fast: false
matrix:
apic_host:
- name: v4.2
url: 'https://173.36.219.68/'
- name: v5.2
url: 'https://173.36.219.69/'
- name: v6.0
url: 'https://173.36.219.70/'
- name: aws_cloud
url: 'https://52.52.20.121/'
- name: azure_cloud
url: 'https://20.245.236.136/'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.7.*'
terraform_wrapper: false
- name: Terraform Acceptance Test (APIC ${{ matrix.apic_host.name }})
run: go test github.com/CiscoDevNet/terraform-provider-aci/v2/internal/provider -v -cover -timeout 120m
env:
TF_ACC: '1'
TF_ACC_STATE_LINEAGE: '1'
ACI_VAL_REL_DN: false
ACI_URL: ${{ matrix.apic_host.url }}