Skip to content

おうちDNS周りに関連した設定のTODOを追加 (#14) #36

おうちDNS周りに関連した設定のTODOを追加 (#14)

おうちDNS周りに関連した設定のTODOを追加 (#14) #36

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
prettier:
runs-on: ubuntu-latest
defaults:
run:
working-directory: CDK
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v2
with:
node-version: "18.14"
- name: setup dependencies
run: npm ci
- name: prettier
run: npm run prettier-check
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: CDK
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v2
with:
node-version: "18.14"
- name: setup dependencies
run: npm ci
- name: build
run: npm run build
- name: unit tests
run: npm run test
- name: CDK diff check
# push 時には aws_cdk_deploy の方でdiffをチェックしてからデプロイするので、PR時のみ。
if: ${{ github.event_name == 'pull_request' }}
run: npx cdk diff --context targetEnvironment=production
env:
AWS_DEFAULT_REGION: "ap-northeast-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}