20
20
TERRAFORM_VERSION : 1.10.2
21
21
22
22
jobs :
23
- run :
23
+ run-deep :
24
+ name : Deep upgrade tests
24
25
runs-on : ubuntu-latest
25
26
strategy :
26
27
fail-fast : false
@@ -37,31 +38,55 @@ jobs:
37
38
- ' 9.x' # Latest 9 version
38
39
steps :
39
40
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
40
-
41
41
- uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
42
42
with :
43
43
terraform_version : " ${{ env.TERRAFORM_VERSION }}"
44
-
45
44
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
46
45
with :
47
46
go-version-file : ' functionaltests/go.mod'
48
47
cache : false
49
-
50
48
- uses : elastic/oblt-actions/google/auth@db0844c27572a45966ce669e4d3073c205c8d5e4 # v1
51
-
52
49
- uses : google-github-actions/get-secretmanager-secrets@a8440875e1c2892062aef9061228d4f1af8f919b # v2.2.3
53
50
with :
54
51
export_to_environment : true
55
52
secrets : |-
56
53
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-${{ matrix.environment }}-api-key
57
-
58
- - name : " Run functional tests"
54
+ - name : " Run deep upgrade tests"
59
55
working-directory : ${{ github.workspace }}/functionaltests
60
56
run : |
61
57
export TF_VAR_CREATED_DATE=$(date +%s)
62
58
VERSION="${{ matrix.active-version }}"
63
59
VERSION="${VERSION//./_}"
64
- go test -run="_to_${VERSION}" -skip="_to_${VERSION}_to_" -v -timeout=60m -target="${{ matrix.environment }}" ./
60
+ go test -run="_to_${VERSION}" -skip="_to_${VERSION}_to_|Standalone_to_Managed" -v -timeout=30m -target="${{ matrix.environment }}" ./
61
+
62
+ run-standalone :
63
+ name : Standalone-to-managed tests
64
+ runs-on : ubuntu-latest
65
+ strategy :
66
+ fail-fast : false
67
+ matrix :
68
+ environment :
69
+ - ' pro'
70
+ steps :
71
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
72
+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
73
+ with :
74
+ terraform_version : " ${{ env.TERRAFORM_VERSION }}"
75
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
76
+ with :
77
+ go-version-file : ' functionaltests/go.mod'
78
+ cache : false
79
+ - uses : elastic/oblt-actions/google/auth@db0844c27572a45966ce669e4d3073c205c8d5e4 # v1
80
+ - uses : google-github-actions/get-secretmanager-secrets@a8440875e1c2892062aef9061228d4f1af8f919b # v2.2.3
81
+ with :
82
+ export_to_environment : true
83
+ secrets : |-
84
+ EC_API_KEY:elastic-observability/elastic-cloud-observability-team-${{ matrix.environment }}-api-key
85
+ - name : " Run standalone-to-managed tests"
86
+ working-directory : ${{ github.workspace }}/functionaltests
87
+ run : |
88
+ export TF_VAR_CREATED_DATE=$(date +%s)
89
+ go test -run="Standalone_to_Managed" -v -timeout=60m -target="${{ matrix.environment }}" ./
65
90
66
91
# notify:
67
92
# if: always()
0 commit comments