choyoungwoo9 is building DevServer #400
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: Dev Server Backend/Frontend CI | |
run-name: ${{ github.actor }} is building DevServer | |
on: | |
push: | |
paths: | |
- 'backend/**' | |
- 'frontend/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Filter Backend/Frontend | |
uses: dorny/[email protected] | |
id: changes | |
with: | |
filters: | | |
backend: | |
- 'backend/**' | |
frontend: | |
- 'frontend/**' | |
- name: install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: DevServer Backend CI | |
if: steps.changes.outputs.backend == 'true' | |
run: | | |
cd ./backend | |
npm install | |
npm run build | |
NODE_ENV=CI npm run test | |
cd .. | |
- name: DevServer Frontend CI | |
if: steps.changes.outputs.frontend == 'true' && always() | |
run: | | |
cd ./frontend | |
npm install | |
npm run build | |
npm run test | |
cd .. |