File tree Expand file tree Collapse file tree 1 file changed +4
-23
lines changed
Expand file tree Collapse file tree 1 file changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -32,35 +32,16 @@ jobs:
3232 cat > .env.integration << EOF
3333 API_KEY=${{ secrets.INTEGRATION_API_KEY }}
3434 RELAYER_API_KEY=${{ secrets.INTEGRATION_API_KEY }}
35- TEST_MODE=ci
36- TEST_NETWORKS=${{ secrets.INTEGRATION_TEST_NETWORKS }}
3735 LOG_LEVEL=info
3836 AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
3937 AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
4038 AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
4139 AWS_REGION=${{ secrets.AWS_REGION }}
40+ AWS_KMS_KEY_ID=${{ secrets.AWS_KMS_KEY_ID }}
4241 EOF
43- - name : Create relayer config with AWS KMS signer
42+ - name : Inject AWS KMS secrets into relayer signer config
4443 run : |
45- cat > tests/integration/config/config.json << EOF
46- {
47- "relayers": [],
48- "notifications": [],
49- "signers": [
50- {
51- "id": "aws-kms-signer",
52- "type": "aws_kms",
53- "config": {
54- "region": "${{ secrets.AWS_REGION }}",
55- "key_id": "${{ secrets.AWS_KMS_KEY_ID }}"
56- }
57- }
58- ],
59- "networks": "/app/networks",
60- "plugins": []
61- }
62- EOF
44+ sed -i 's/"region": "AWS_REGION"/"region": "${{ secrets.AWS_REGION }}"/g' tests/integration/config/config.json
45+ sed -i 's/"key_id": "AWS_KMS_KEY_ID"/"key_id": "${{ secrets.AWS_KMS_KEY_ID }}"/g' tests/integration/config/config.json
6346 - name : Run Integration Tests
6447 run : ./scripts/run-integration-docker.sh
65- env :
66- TEST_MODE : ci
You can’t perform that action at this time.
0 commit comments