|
56 | 56 | name: go build |
57 | 57 | run: go build -o terraform-plugin-dir/registry.terraform.io/RedisLabs/rediscloud/99.99.99/$(go env GOOS)_$(go env GOARCH)/terraform-provider-rediscloud . |
58 | 58 |
|
59 | | - go_unit_test: |
60 | | - name: go unit test |
61 | | - needs: [go_build] |
62 | | - runs-on: ubuntu-latest |
63 | | - steps: |
64 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
65 | | - - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
66 | | - with: |
67 | | - go-version-file: go.mod |
68 | | - - run: go test ./... -run="^TestUnit" # Runs tests starting with TestUnit |
69 | | - |
70 | | - tfproviderlint: |
71 | | - name: tfproviderlint |
72 | | - needs: [go_build] |
73 | | - runs-on: ubuntu-latest |
74 | | - steps: |
75 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
76 | | - - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
77 | | - with: |
78 | | - go-version-file: go.mod |
79 | | - - run: make tfproviderlint |
80 | | - |
81 | 59 | terraform_providers_schema: |
82 | 60 | name: terraform providers schema |
83 | 61 | needs: [go_build] |
@@ -124,29 +102,28 @@ jobs: |
124 | 102 | mkdir terraform-providers-schema |
125 | 103 | terraform providers schema -json > terraform-providers-schema/schema.json |
126 | 104 |
|
127 | | - # All acceptance tests run in parallel after quick tests |
128 | | - go_test_smoke_aa_tgw_attachment: |
129 | | - if: false # Temporarily disabled - TGW tests not ready yet |
130 | | - name: go test smoke aa tgw attachment |
131 | | - needs: [go_unit_test, tfproviderlint, terraform_providers_schema] |
| 105 | + go_unit_test: |
| 106 | + name: go unit test |
| 107 | + needs: [go_build] |
132 | 108 | runs-on: ubuntu-latest |
133 | 109 | steps: |
134 | 110 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
135 | 111 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
136 | 112 | with: |
137 | 113 | go-version-file: go.mod |
138 | | - - run: EXECUTE_TESTS=true make testacc TESTARGS='-run="TestAccResourceRedisCloudActiveActiveTransitGatewayAttachment_CRUDI"' |
| 114 | + - run: go test ./... -run="^TestUnit" # Runs tests starting with TestUnit |
139 | 115 |
|
140 | | - go_test_smoke_aa_enable_default_user: |
141 | | - name: go test smoke aa enable default user |
| 116 | + go_test_smoke_aa_tgw_attachment: |
| 117 | + if: false # Temporarily disabled - TGW tests not ready yet |
| 118 | + name: go test smoke aa tgw attachment |
142 | 119 | needs: [go_unit_test, tfproviderlint, terraform_providers_schema] |
143 | 120 | runs-on: ubuntu-latest |
144 | 121 | steps: |
145 | 122 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
146 | 123 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
147 | 124 | with: |
148 | 125 | go-version-file: go.mod |
149 | | - - run: EXECUTE_TESTS=true make testacc TESTARGS='-run="TestAccResourceRedisCloudActiveActiveDatabase_enableDefaultUser"' |
| 126 | + - run: EXECUTE_TESTS=true make testacc TESTARGS='-run="TestAccResourceRedisCloudActiveActiveTransitGatewayAttachment_CRUDI"' |
150 | 127 |
|
151 | 128 | go_test_smoke_aa_db: |
152 | 129 | name: go test smoke aa db |
@@ -250,3 +227,14 @@ jobs: |
250 | 227 | with: |
251 | 228 | go-version-file: go.mod |
252 | 229 | - run: EXECUTE_TESTS=true make testacc TESTARGS='-run="TestAccResourceRedisCloudProDatabase_qpf"' |
| 230 | + |
| 231 | + tfproviderlint: |
| 232 | + name: tfproviderlint |
| 233 | + needs: [go_build] |
| 234 | + runs-on: ubuntu-latest |
| 235 | + steps: |
| 236 | + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 237 | + - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
| 238 | + with: |
| 239 | + go-version-file: go.mod |
| 240 | + - run: make tfproviderlint |
0 commit comments