2424 - name : Setup Go
2525 uses : actions/setup-go@v5
2626 with :
27- go-version : ' 1.22 '
27+ go-version : ' 1.24.4 '
2828
2929 - name : Install AWS SAM CLI
3030 run : |
7979 - name : Setup Go
8080 uses : actions/setup-go@v5
8181 with :
82- go-version : ' 1.22 '
82+ go-version : ' 1.24.4 '
8383
8484 - name : Install AWS SAM CLI
8585 run : |
@@ -129,7 +129,7 @@ jobs:
129129 - name : Setup Go
130130 uses : actions/setup-go@v5
131131 with :
132- go-version : ' 1.22 '
132+ go-version : ' 1.24.4 '
133133
134134 - name : Install AWS SAM CLI
135135 run : |
@@ -158,15 +158,59 @@ jobs:
158158 env :
159159 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
160160
161+ run-e2e-tests-lambda-firehose :
162+ needs : [build-templates]
163+ runs-on : ubuntu-latest
164+ permissions :
165+ id-token : write
166+ contents : write
167+ steps :
168+ - name : Checkout code
169+ uses : actions/checkout@v4
170+
171+ - name : Download Artifact
172+ uses : actions/download-artifact@v4
173+ with :
174+ path : build-artifacts
175+
176+ - name : Setup Go
177+ uses : actions/setup-go@v5
178+ with :
179+ go-version : ' 1.24.4'
180+
181+ - name : Install AWS SAM CLI
182+ run : |
183+ pip install aws-sam-cli
184+
185+ - name : Configure AWS Credentials
186+ uses : aws-actions/configure-aws-credentials@v3
187+ with :
188+ role-to-assume : ${{ secrets.AWS_E2E_ROLE }}
189+ aws-region : us-east-1
190+
191+ - name : Run e2e tests for lambda and firehose stack
192+ env :
193+ NEW_RELIC_USER_KEY : ${{ secrets.NEW_RELIC_USER_KEY }}
194+ NEW_RELIC_LICENSE_KEY : ${{ secrets.NEW_RELIC_LICENSE_KEY }}
195+ run : |
196+ cd e2e-tests/
197+ ./lambda-with-metrics-test.sh test_for_lambda_firehose_stack
198+
199+ - name : Send failure notification to Slack
200+ if : always()
201+ uses : ravsamhq/notify-slack-action@v1
202+ with :
203+ status : ${{ job.status }}
204+ notify_when : ' failure'
205+ env :
206+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
207+
161208 run-e2e-tests-lambda-firehose-metrics :
162209 needs : [build-templates]
163210 runs-on : ubuntu-latest
164211 permissions :
165212 id-token : write
166213 contents : write
167- strategy :
168- matrix :
169- test-case : [test_for_lambda_firehose_stack, test_for_firehose_metric_polling_stack, test_for_firehose_metric_streaming_stack, test_for_lambda_metrics_polling_stack, test_for_lambda_metrics_streaming_stack, test_for_lambda_firehose_metric_polling_stack, test_for_lambda_firehose_metric_streaming_stack]
170214 steps :
171215 - name : Checkout code
172216 uses : actions/checkout@v4
@@ -191,13 +235,18 @@ jobs:
191235 role-to-assume : ${{ secrets.AWS_E2E_ROLE }}
192236 aws-region : us-east-1
193237
194- - name : Run e2e tests for lambda and metrics stack
238+ - name : Run e2e tests for lambda, firehose and metrics stacks
195239 env :
196240 NEW_RELIC_USER_KEY : ${{ secrets.NEW_RELIC_USER_KEY }}
197241 NEW_RELIC_LICENSE_KEY : ${{ secrets.NEW_RELIC_LICENSE_KEY }}
198242 run : |
199243 cd e2e-tests/
200- ./lambda-with-metrics-test.sh ${{ matrix.test-case }}
244+ ./lambda-with-metrics-test.sh test_for_lambda_metrics_polling_stack
245+ ./lambda-with-metrics-test.sh test_for_lambda_metrics_streaming_stack
246+ ./lambda-with-metrics-test.sh test_for_firehose_metric_polling_stack
247+ ./lambda-with-metrics-test.sh test_for_firehose_metric_streaming_stack
248+ ./lambda-with-metrics-test.sh test_for_lambda_firehose_metric_polling_stack
249+ ./lambda-with-metrics-test.sh test_for_lambda_firehose_metric_streaming_stack
201250
202251 - name : Send failure notification to Slack
203252 if : always()
@@ -209,7 +258,7 @@ jobs:
209258 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
210259
211260 clean-up :
212- needs : [run-e2e-tests-cloudwatch, run-e2e-tests-s3, run-e2e-tests-lambda-firehose-metrics]
261+ needs : [run-e2e-tests-cloudwatch, run-e2e-tests-s3, run-e2e-tests-lambda-firehose, run-e2e-tests-lambda-firehose -metrics]
213262 runs-on : ubuntu-latest
214263 permissions :
215264 id-token : write
0 commit comments