おうちDNS周りに関連した設定のTODOを追加 (#14) #36
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: 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 }} |