Skip to content

Commit

Permalink
fix cdk synth in CI (#21)
Browse files Browse the repository at this point in the history
setup a dummy secrets file to allow cdk synth to work.
  • Loading branch information
zaro0508 authored Jul 25, 2024
1 parent 1adc193 commit 083e796
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,24 @@ jobs:
uses: actions/checkout@v3
- name: Static Analysis
uses: pre-commit/[email protected]
- name: Dummy secrets file
run: |
tee -a .openchallenges > /dev/null <<EOT
MARIADB_PASSWORD=dummy
MARIADB_ROOT_PASSWORD=dummy
GIT_HOST_KEY=DUMMY_GIT_HOST_KEY
GIT_PRIVATE_KEY=-----BEGIN OPENSSH PRIVATE KEY-----\nDUMMY_GIT_PRIVATE_KEY\n-----END OPENSSH PRIVATE KEY-----
AWS_LOADER_S3_ACCESS_KEY_ID=DUMMY_S3_ACCESS_KEY
AWS_LOADER_S3_SECRET_ACCESS_KEY=DUMMY_S3_SECRET_KEY
SECURITY_KEY=00000
EOT
- name: cdk synth
uses: youyo/aws-cdk-github-actions@v2
with:
cdk_subcommand: 'synth'
actions_comment: false
cdk_args: '--verbose'
debug_log: true
cdk_args: '--output ./cdk.out'
tests:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 083e796

Please sign in to comment.