26
26
test :
27
27
name : test ${{ matrix.module }}
28
28
runs-on : ubuntu-latest
29
- steps :
30
- - uses : actions/checkout@v2
31
- - id : filter
32
- uses : dorny/paths-filter@v2
33
- with :
34
- filters : |
35
- module:
36
- - '${{ matrix.module }}/**'
37
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
38
- uses : hashicorp/setup-terraform@v1
39
- with :
40
- terraform_version : 0.12.30
41
- terraform_wrapper : " false"
42
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
43
- uses : actions/setup-go@v2
44
- with :
45
- go-version : 1.14.3
46
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
47
- name : Install bless provider
48
- run : curl -s https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-bless/main/download.sh | bash -s -- -b $HOME/.terraform.d/plugins/ -d
49
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
50
- name : Check bless provider
51
- run : ls -al $HOME/.terraform.d/plugins/terraform-provider-bless*
52
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
53
- name : Install Snowflake provider
54
- run : curl -s https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-snowflake/main/download.sh | bash -s -- -b $HOME/.terraform.d/plugins/ -d
55
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
56
- name : Check Snowflake provider
57
- run : ls -al $HOME/.terraform.d/plugins/terraform-provider-snowflake*
58
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
59
- run : aws configure set aws_access_key_id ${{ secrets.CI1_AWS_ACCESS_KEY_ID }} --profile cztack-ci-1
60
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
61
- run : aws configure set aws_secret_access_key ${{ secrets.CI1_AWS_SECRET_ACCESS_KEY }} --profile cztack-ci-1
62
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
63
- run : aws --profile cztack-ci-1 sts get-caller-identity
64
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
65
- run : aws configure set aws_access_key_id ${{ secrets.CI2_AWS_ACCESS_KEY_ID }} --profile cztack-ci-2
66
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
67
- run : aws configure set aws_secret_access_key ${{ secrets.CI2_AWS_SECRET_ACCESS_KEY }} --profile cztack-ci-2
68
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
69
- run : aws --profile cztack-ci-2 sts get-caller-identity
70
- - if : github.event == 'push' || steps.filter.outputs.module == 'true'
71
- run : make test-ci TEST=./${{ matrix.module }}
72
29
strategy :
30
+ fail-fast : false
73
31
matrix :
74
32
module :
75
33
- aws-acm-cert
118
76
- aws-sns-lambda
119
77
- aws-ssm-params
120
78
- aws-ssm-params-writer
121
- - bless-ca/test
79
+ # - bless-ca/test
122
80
- github-webhooks-to-s3
123
81
- module-template
124
82
- snowflake-account-grant-all
@@ -137,10 +95,54 @@ jobs:
137
95
- snowflake-table-grant-all
138
96
- snowflake-view-grant-all
139
97
- snowflake-warehouse-grant-all
98
+ steps :
99
+ - uses : actions/checkout@v2
100
+ - id : filter
101
+ uses : dorny/paths-filter@v2
102
+ with :
103
+ filters : |
104
+ module:
105
+ - '${{ matrix.module }}/**'
106
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
107
+ uses : hashicorp/setup-terraform@v1
108
+ with :
109
+ terraform_version : 0.12.30
110
+ terraform_wrapper : " false"
111
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
112
+ uses : actions/setup-go@v2
113
+ with :
114
+ go-version : 1.14.3
115
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
116
+ name : Install bless provider
117
+ run : curl -s https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-bless/main/download.sh | bash -s -- -b $HOME/.terraform.d/plugins/ -d
118
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
119
+ name : Check bless provider
120
+ run : ls -al $HOME/.terraform.d/plugins/terraform-provider-bless*
121
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
122
+ name : Install Snowflake provider
123
+ run : curl -s https://raw.githubusercontent.com/chanzuckerberg/terraform-provider-snowflake/main/download.sh | bash -s -- -b $HOME/.terraform.d/plugins/ -d
124
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
125
+ name : Check Snowflake provider
126
+ run : ls -al $HOME/.terraform.d/plugins/terraform-provider-snowflake*
127
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
128
+ run : aws configure set aws_access_key_id ${{ secrets.CI1_AWS_ACCESS_KEY_ID }} --profile cztack-ci-1
129
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
130
+ run : aws configure set aws_secret_access_key ${{ secrets.CI1_AWS_SECRET_ACCESS_KEY }} --profile cztack-ci-1
131
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
132
+ run : aws --profile cztack-ci-1 sts get-caller-identity
133
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
134
+ run : aws configure set aws_access_key_id ${{ secrets.CI2_AWS_ACCESS_KEY_ID }} --profile cztack-ci-2
135
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
136
+ run : aws configure set aws_secret_access_key ${{ secrets.CI2_AWS_SECRET_ACCESS_KEY }} --profile cztack-ci-2
137
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
138
+ run : aws --profile cztack-ci-2 sts get-caller-identity
139
+ - if : github.event == 'push' || steps.filter.outputs.module == 'true'
140
+ run : make test-ci TEST=./${{ matrix.module }}
141
+
140
142
timeout-minutes : 45
141
143
name : CI
142
144
" on " :
143
- pull_request : null
145
+ pull_request :
144
146
push :
145
147
branches :
146
148
- main
0 commit comments