File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : E2E Test Workflow For Firehose
2
2
3
3
on :
4
- push :
4
+ pull_request :
5
5
branches :
6
6
- main
7
7
- develop
37
37
NEW_RELIC_LICENSE_KEY : ${{ secrets.NEW_RELIC_LICENSE_KEY }}
38
38
run : |
39
39
cd e2e_tests/
40
+ ./build_template.sh
40
41
./firehose_e2e_tests.sh ${{ matrix.test-case }}
41
42
Original file line number Diff line number Diff line change
1
+ # Building and deploying the changes
2
+ BASE_NAME=$( basename " $TEMPLATE_FILE_NAME " .yaml)
3
+ BUILD_DIR=" $BUILD_DIR_BASE /$BASE_NAME "
4
+
5
+ # Build and package the SAM template
6
+ sam build --template-file " ../$TEMPLATE_FILE_NAME " --build-dir " $BUILD_DIR "
7
+ sam package --s3-bucket " $S3_BUCKET " --template-file " $BUILD_DIR /template.yaml" --output-template-file " $BUILD_DIR /$TEMPLATE_FILE_NAME "
Original file line number Diff line number Diff line change @@ -153,17 +153,8 @@ COMMON_ATTRIBUTES=$(<common_attribute.json)
153
153
# Delete the Firehose stack
154
154
delete_stack " $FIREHOSE_STACK_NAME_4 "
155
155
}
156
-
157
-
158
-
159
- BASE_NAME=$( basename " $TEMPLATE_FILE_NAME " .yaml)
160
- BUILD_DIR=" $BUILD_DIR_BASE /$BASE_NAME "
161
-
162
- # Build and package the SAM template
163
- sam build --template-file " ../$TEMPLATE_FILE_NAME " --build-dir " $BUILD_DIR "
164
- sam package --s3-bucket " $S3_BUCKET " --template-file " $BUILD_DIR /template.yaml" --output-template-file " $BUILD_DIR /$TEMPLATE_FILE_NAME "
165
156
166
- Run the test cases
157
+ # Run the test cases
167
158
case $1 in
168
159
test-without-filter)
169
160
test_logs_without_filter_pattern
You can’t perform that action at this time.
0 commit comments