Feat/login mau #135 #50
Workflow file for this run
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
# Dependency Install, Build, Start를 여기서 다합니다. | |
name: Build Bot | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
paths: | |
- 'src/**' # source code | |
- 'e2e/**' # e2e test | |
- 'package.json' # 의존성 | |
- 'package-lock.json' # 의존성 | |
- 'prisma/**' # prisma, bin file/schema | |
- 'tsconfig.json' # tsconfig | |
- 'tsconfig.build.json' # tsconfig | |
- 'appspec.yml' # codedeploy | |
env: | |
AWS_REGION: ap-northeast-2 | |
jobs: | |
deploy: | |
permissions: | |
id-token: write | |
contents: write | |
name: Build Check Application | |
runs-on: ubuntu-22.04 | |
steps: | |
# 레포지토리로 이동합니다. | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.16.0 | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}. | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: prisma generate | |
run: npx prisma generate | |
- name: build | |
run: npm run build |