File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR Approval
2
+
3
+ on :
4
+ pull_request_review :
5
+ types : [submitted]
6
+ workflow_dispatch :
7
+ jobs :
8
+ integ_tests :
9
+ if : github.event.review.state == 'approved'
10
+ name : Run Integration Tests
11
+ uses : aws-actions/amazon-ecs-deploy-task-definition/.github/workflows/test-workflow.yml@integ-tests
12
+ with :
13
+ call_local_action : ' true'
14
+ secrets :
15
+ account_id : ${{ secrets.AWS_ACCOUNT_ID }}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ queue_rules:
5
5
- status-success=Run Unit Tests
6
6
- status-success=Semantic Pull Request
7
7
- status-success=Analyze (javascript)
8
+ - status-success=Run Integration Tests
8
9
9
10
pull_request_rules :
10
11
- name : Automatically merge on CI success and review approval
@@ -16,6 +17,7 @@ pull_request_rules:
16
17
- status-success=Run Unit Tests
17
18
- status-success=Semantic Pull Request
18
19
- status-success=Analyze (javascript)
20
+ - status-success=Run Integration Tests
19
21
- label!=work-in-progress
20
22
- -title~=(WIP|wip)
21
23
- -merged
Original file line number Diff line number Diff line change
1
+ {
2
+ "containerDefinitions" : [
3
+ {
4
+ "entryPoint" : [
5
+ " sh" ,
6
+ " -c"
7
+ ],
8
+ "portMappings" : [
9
+ {
10
+ "hostPort" : 80 ,
11
+ "protocol" : " tcp" ,
12
+ "containerPort" : 80
13
+ }
14
+ ],
15
+ "command" : [
16
+ " /bin/sh -c \" echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\" "
17
+ ],
18
+ "cpu" : 256 ,
19
+ "memoryReservation" : 512 ,
20
+ "image" : " httpd:2.4" ,
21
+ "essential" : true ,
22
+ "name" : " sample-app"
23
+ }
24
+ ],
25
+ "memory" : " 512" ,
26
+ "family" : " github-actions-deploy-task-def-integ-tests" ,
27
+ "requiresCompatibilities" : [
28
+ " FARGATE"
29
+ ],
30
+ "networkMode" : " awsvpc" ,
31
+ "cpu" : " 256"
32
+ }
You can’t perform that action at this time.
0 commit comments