File tree Expand file tree Collapse file tree 1 file changed +8
-27
lines changed
Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Original file line number Diff line number Diff line change @@ -23,44 +23,24 @@ jobs:
2323 distribution : ' temurin'
2424 java-version : ' 21'
2525
26- - name : Build Lambdas
27- run : cd lambda-functions && mvn clean package shade:shade
26+ - name : Install dependencies
27+ run : make install
2828
2929 - name : Spin up LocalStack
3030 run : |
31- docker compose up -d
32- sleep 120
31+ make start
32+ make ready
3333 env :
3434 LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
3535
3636 - name : Setup the solutions
3737 run : |
3838 pip install awscli-local
39- ./solutions/dynamodb-outage.sh
40- ./solutions/route53-failover.sh
41-
42- - name : Debug steps
43- run : |
44- dig @127.0.0.1 test.hello-localstack.com CNAME +short
45- export PRIMARY_API_REGION=us-east-1
46- curl -L --request POST 'http://localhost:4566/_localstack/chaos/faults' \
47- --header 'Content-Type: application/json' \
48- --data "[
49- {\"service\": \"apigateway\", \"region\": \"${PRIMARY_API_REGION}\"},
50- {\"service\": \"lambda\", \"region\": \"${PRIMARY_API_REGION}\"}
51- ]"
52- sleep 40
53- dig @127.0.0.1 test.hello-localstack.com CNAME +short
54- curl --location --request POST 'http://localhost.localstack.cloud:4566/_localstack/chaos/faults' \
55- --header 'Content-Type: application/json' \
56- --data '[]'
57- sleep 30
58- dig @127.0.0.1 test.hello-localstack.com CNAME +short
39+ make deploy
5940
6041 - name : Run Integration Tests
6142 run : |
62- pip3 install boto3 pytest requests dnspython
63- pytest
43+ make test
6444 env :
6545 AWS_DEFAULT_REGION : us-east-1
6646 AWS_REGION : us-east-1
7050 - name : Logs out of LocalStack
7151 if : always()
7252 run : |
73- docker compose logs
53+ make logs
54+ cat logs.txt
You can’t perform that action at this time.
0 commit comments