Skip to content

Commit 2b6889c

Browse files
authored
Merge pull request #22 from sap-linuxlab/dev
0.7.0 release
2 parents ba1a1bf + 60e9bab commit 2b6889c

File tree

486 files changed

+40800
-1581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+40800
-1581
lines changed

.github/workflows/terraform_validate.yml renamed to .github/workflows/terraform_validate_100.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Terraform Validate Tests
1+
name: Terraform Validate Tests 1.0.0
22

33
on:
44
push:
@@ -11,20 +11,20 @@ on:
1111

1212
jobs:
1313
terraform_validate:
14-
name: 'Terraform Validate ALL'
14+
name: 'TF Validate'
1515
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: false
1818
max-parallel: 10
1919
matrix:
20-
terraform_ver: [~1.0.0, ~1.1.0, ~1.2.0]
21-
sap_solution_scenario: [sap_hana_single_node_install, sap_ecc_hana_single_node_system_copy_homogeneous_hdb, sap_s4hana_single_node_install_maintenance_plan, sap_s4hana_single_node_system_copy_homogeneous_hdb]
20+
terraform_ver: [~1.0.0] # Job matrix can generate a maximum of 256 jobs per workflow run
21+
sap_solution_scenario: [sap_bw4hana_single_node_install, sap_ecc_hana_single_node_system_copy_homogeneous_hdb, sap_ecc_ibmdb2_single_node_install, sap_ecc_oracledb_single_node_install, sap_ecc_sapase_single_node_install, sap_ecc_sapmaxdb_single_node_install, sap_hana_single_node_install, sap_nwas_abap_hana_install, sap_nwas_abap_ibmdb2_install, sap_nwas_abap_oracledb_install, sap_nwas_abap_sapase_install, sap_nwas_abap_sapmaxdb_install, sap_nwas_java_ibmdb2_install, sap_nwas_java_sapase_install, sap_s4hana_single_node_install, sap_s4hana_single_node_install_maintenance_plan, sap_s4hana_single_node_system_copy_homogeneous_hdb]
2222
infrastructure_platform: [aws_ec2_instance, ibmcloud_vs, ibmcloud_powervs, ibmpowervc, msazure_vm]
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3.1.0
2626
- name: Setup Terraform
27-
uses: hashicorp/setup-terraform@v1
27+
uses: hashicorp/setup-terraform@v2.0.3
2828
with:
2929
terraform_version: ${{ matrix.terraform_ver }}
3030
- name: Check if directory empty
@@ -33,18 +33,18 @@ jobs:
3333
# Check directory, add result to empty_string, make visible to other step tasks (use string, not boolean)
3434
if [ -d "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" ]; then
3535
dir_test=$(ls -lha "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" | grep main.tf)
36-
if [ -z "${dir_test}" ]; then echo 'null' ; else FLAG="true" && echo "::set-output name=FLAG::$FLAG" ; fi
36+
if [ -z "${dir_test}" ]; then echo 'null' && exit 0 ; else FLAG="true" && echo "FLAG=$FLAG" >> $GITHUB_ENV ; fi
3737
else
38-
echo 'null'
38+
echo 'null' && exit 0
3939
fi
4040
- name: Terraform Init, if directory is not empty
41-
if: ${{ steps.directory_empty_flag.outputs.FLAG == 'true' }}
41+
if: ${{ env.FLAG == 'true' }}
4242
id: init
4343
run: |
4444
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
4545
terraform init
4646
- name: Terraform Validate, if directory is not empty
47-
if: ${{ steps.directory_empty_flag.outputs.FLAG == 'true' }}
47+
if: ${{ env.FLAG == 'true' }}
4848
id: validate
4949
run: |
5050
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Terraform Validate Tests 1.1.0
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
terraform_validate:
14+
name: 'TF Validate'
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
max-parallel: 10
19+
matrix:
20+
terraform_ver: [~1.1.0] # Job matrix can generate a maximum of 256 jobs per workflow run
21+
sap_solution_scenario: [sap_bw4hana_single_node_install, sap_ecc_hana_single_node_system_copy_homogeneous_hdb, sap_ecc_ibmdb2_single_node_install, sap_ecc_oracledb_single_node_install, sap_ecc_sapase_single_node_install, sap_ecc_sapmaxdb_single_node_install, sap_hana_single_node_install, sap_nwas_abap_hana_install, sap_nwas_abap_ibmdb2_install, sap_nwas_abap_oracledb_install, sap_nwas_abap_sapase_install, sap_nwas_abap_sapmaxdb_install, sap_nwas_java_ibmdb2_install, sap_nwas_java_sapase_install, sap_s4hana_single_node_install, sap_s4hana_single_node_install_maintenance_plan, sap_s4hana_single_node_system_copy_homogeneous_hdb]
22+
infrastructure_platform: [aws_ec2_instance, ibmcloud_vs, ibmcloud_powervs, ibmpowervc, msazure_vm]
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3.1.0
26+
- name: Setup Terraform
27+
uses: hashicorp/setup-terraform@v2.0.3
28+
with:
29+
terraform_version: ${{ matrix.terraform_ver }}
30+
- name: Check if directory empty
31+
id: directory_empty_flag
32+
run: |
33+
# Check directory, add result to empty_string, make visible to other step tasks (use string, not boolean)
34+
if [ -d "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" ]; then
35+
dir_test=$(ls -lha "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" | grep main.tf)
36+
if [ -z "${dir_test}" ]; then echo 'null' && exit 0 ; else FLAG="true" && echo "FLAG=$FLAG" >> $GITHUB_ENV ; fi
37+
else
38+
echo 'null' && exit 0
39+
fi
40+
- name: Terraform Init, if directory is not empty
41+
if: ${{ env.FLAG == 'true' }}
42+
id: init
43+
run: |
44+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
45+
terraform init
46+
- name: Terraform Validate, if directory is not empty
47+
if: ${{ env.FLAG == 'true' }}
48+
id: validate
49+
run: |
50+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
51+
terraform validate -no-color
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Terraform Validate Tests 1.2.0
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
terraform_validate:
14+
name: 'TF Validate'
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
max-parallel: 10
19+
matrix:
20+
terraform_ver: [~1.2.0] # Job matrix can generate a maximum of 256 jobs per workflow run
21+
sap_solution_scenario: [sap_bw4hana_single_node_install, sap_ecc_hana_single_node_system_copy_homogeneous_hdb, sap_ecc_ibmdb2_single_node_install, sap_ecc_oracledb_single_node_install, sap_ecc_sapase_single_node_install, sap_ecc_sapmaxdb_single_node_install, sap_hana_single_node_install, sap_nwas_abap_hana_install, sap_nwas_abap_ibmdb2_install, sap_nwas_abap_oracledb_install, sap_nwas_abap_sapase_install, sap_nwas_abap_sapmaxdb_install, sap_nwas_java_ibmdb2_install, sap_nwas_java_sapase_install, sap_s4hana_single_node_install, sap_s4hana_single_node_install_maintenance_plan, sap_s4hana_single_node_system_copy_homogeneous_hdb]
22+
infrastructure_platform: [aws_ec2_instance, ibmcloud_vs, ibmcloud_powervs, ibmpowervc, msazure_vm]
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3.1.0
26+
- name: Setup Terraform
27+
uses: hashicorp/setup-terraform@v2.0.3
28+
with:
29+
terraform_version: ${{ matrix.terraform_ver }}
30+
- name: Check if directory empty
31+
id: directory_empty_flag
32+
run: |
33+
# Check directory, add result to empty_string, make visible to other step tasks (use string, not boolean)
34+
if [ -d "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" ]; then
35+
dir_test=$(ls -lha "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" | grep main.tf)
36+
if [ -z "${dir_test}" ]; then echo 'null' && exit 0 ; else FLAG="true" && echo "FLAG=$FLAG" >> $GITHUB_ENV ; fi
37+
else
38+
echo 'null' && exit 0
39+
fi
40+
- name: Terraform Init, if directory is not empty
41+
if: ${{ env.FLAG == 'true' }}
42+
id: init
43+
run: |
44+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
45+
terraform init
46+
- name: Terraform Validate, if directory is not empty
47+
if: ${{ env.FLAG == 'true' }}
48+
id: validate
49+
run: |
50+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
51+
terraform validate -no-color
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Terraform Validate Tests 1.3.0
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
terraform_validate:
14+
name: 'TF Validate'
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
max-parallel: 10
19+
matrix:
20+
terraform_ver: [~1.3.0] # Job matrix can generate a maximum of 256 jobs per workflow run
21+
sap_solution_scenario: [sap_bw4hana_single_node_install, sap_ecc_hana_single_node_system_copy_homogeneous_hdb, sap_ecc_ibmdb2_single_node_install, sap_ecc_oracledb_single_node_install, sap_ecc_sapase_single_node_install, sap_ecc_sapmaxdb_single_node_install, sap_hana_single_node_install, sap_nwas_abap_hana_install, sap_nwas_abap_ibmdb2_install, sap_nwas_abap_oracledb_install, sap_nwas_abap_sapase_install, sap_nwas_abap_sapmaxdb_install, sap_nwas_java_ibmdb2_install, sap_nwas_java_sapase_install, sap_s4hana_single_node_install, sap_s4hana_single_node_install_maintenance_plan, sap_s4hana_single_node_system_copy_homogeneous_hdb]
22+
infrastructure_platform: [aws_ec2_instance, ibmcloud_vs, ibmcloud_powervs, ibmpowervc, msazure_vm]
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3.1.0
26+
- name: Setup Terraform
27+
uses: hashicorp/setup-terraform@v2.0.3
28+
with:
29+
terraform_version: ${{ matrix.terraform_ver }}
30+
- name: Check if directory empty
31+
id: directory_empty_flag
32+
run: |
33+
# Check directory, add result to empty_string, make visible to other step tasks (use string, not boolean)
34+
if [ -d "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" ]; then
35+
dir_test=$(ls -lha "$PWD/${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}" | grep main.tf)
36+
if [ -z "${dir_test}" ]; then echo 'null' && exit 0 ; else FLAG="true" && echo "FLAG=$FLAG" >> $GITHUB_ENV ; fi
37+
else
38+
echo 'null' && exit 0
39+
fi
40+
- name: Terraform Init, if directory is not empty
41+
if: ${{ env.FLAG == 'true' }}
42+
id: init
43+
run: |
44+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
45+
terraform init
46+
- name: Terraform Validate, if directory is not empty
47+
if: ${{ env.FLAG == 'true' }}
48+
id: validate
49+
run: |
50+
cd "./${{ matrix.sap_solution_scenario }}/${{ matrix.infrastructure_platform }}"
51+
terraform validate -no-color

0 commit comments

Comments
 (0)