rename workflow #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CDK Synth | |
on: [push] | |
# Required permissions | |
permissions: read-all | |
jobs: | |
synth: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: install cdk | |
run: npm install -g aws-cdk | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
network: | |
- 'doorway-network/**' | |
app: | |
- 'doorway-app-servers/**' | |
- name: yarn-install-network | |
if: steps.filter.outputs.network == 'true' | |
working-directory: ./doorway-network | |
run: yarn install | |
- name: network-synth | |
if: steps.filter.outputs.network == 'true' | |
run: cdk synth | |
working-directory: ./doorway-network | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-west-1 | |
ENVIRONMENT: dev | |
- name: yarn-install-app | |
if: steps.filter.outputs.app == 'true' | |
working-directory: ./doorway-app-servers | |
run: yarn install | |
- name: network-synth | |
if: steps.filter.outputs.app == 'true' | |
run: cdk synth | |
working-directory: ./doorway-app-servers | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-west-1 | |
ENVIRONMENT: dev |