Bump @aws-cdk/aws-sns from 1.107.0 to 1.204.0 (#400) #224
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: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
name: Quality Checks | |
steps: | |
- name: Check Out Repository | |
uses: 'actions/checkout@v2' | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@master | |
with: | |
path: node_modules | |
key: v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: NPM Install | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Check Formatting | |
run: yarn prettier:check | |
- name: Lint | |
run: yarn lint:check | |
- name: Type Check | |
run: yarn build | |
- name: Unit Test | |
run: yarn test | |
deploy-stacks-cdk: | |
runs-on: ubuntu-latest | |
name: Deploy Stack '${{ matrix.stack }}' via CDK | |
needs: [quality-checks] | |
strategy: | |
matrix: | |
stack: [budgets, certificates, shared-dns] | |
env: | |
AWS_REGION: eu-west-2 | |
steps: | |
- name: Check Out Repository | |
uses: 'actions/checkout@v2' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Restore node_modules | |
id: cache-node-modules | |
uses: actions/cache@master | |
with: | |
path: node_modules | |
key: v2-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: NPM Install | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: yarn | |
- name: Deploy ${{ matrix.stack }} | |
run: yarn deploy ${{ matrix.stack }} |