공지사항 알림글 구현 #31
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: Vue build test | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- my-garden-fe/** | |
env: | |
NODE_VERSION: 20 # build.gradle에 정의된 nodeVersion과 일치시켜야 함 | |
jobs: | |
front-build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./my-garden-fe | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Check node modules cache | |
id: cache | |
uses: actions/cache@v4 | |
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: Build with npm | |
run: npm run build |