[FIX] Build 명령어 수정 #4
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
name: Makers_Crew CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build-springboot: | |
name: Build and analyze (SpringBoot) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
- name: Build and analyze (SpringBoot) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd main | |
./gradlew clean build --args='--spring.profiles.active=dev' | |
build-nestjs: | |
name: Build and analyze (NestJS) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '21' | |
- name: Cache npm packages | |
uses: actions/cache@v3 | |
with: | |
path: server/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('server/package-lock.json') }} | |
- name: Build and analyze (NestJS) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd server | |
npm install | |
npm run start |