Skip to content

Add ci workflow cdk synth #11

Add ci workflow cdk synth

Add ci workflow cdk synth #11

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
test-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Test
run: npm run test
- name: Build
run: npm run build
test-infrastructure:
runs-on: ubuntu-latest
defaults:
run:
working-directory: infrastructure
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: infrastructure/package-lock.json
- name: Install AWS CLI
run: npm install -g aws-cdk
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: CDK Synth
run: npm run synth