Skip to content

Commit

Permalink
Merge pull request #528 from woowacourse-teams/develop-FE-2
Browse files Browse the repository at this point in the history
[FE] 1.0.0 배포
  • Loading branch information
semnil5202 authored Sep 30, 2023
2 parents 1427f37 + fafe2f4 commit f3b43d3
Show file tree
Hide file tree
Showing 39 changed files with 8,221 additions and 25,502 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/fe-merge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

pull_request:
branches: [develop-FE]
branches: [develop-FE-2]
types: [closed]
paths: frontend/**

Expand All @@ -23,8 +23,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: 'frontend'
cache: "npm"
cache-dependency-path: "frontend"

- name: Install npm
run: npm install
Expand All @@ -33,6 +33,9 @@ jobs:
- name: Build project
run: npm run build
working-directory: frontend
env:
REACT_APP_GOOGLE_ANALYTICS: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS }}
APP_URL: "https://mapbefine.kro.kr/api"

- name: upload to artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:

uses: 8398a7/action-slack@v3
with:
mention: 'here'
mention: "here"
if_mention: always
status: ${{ job.status }}
fields: workflow,job,commit,message,ref,author,took
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/fe-merge-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

pull_request:
branches: [ main ]
branches: [main]
types: [closed]
paths: frontend/**

Expand Down Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Build project
run: npm run build
working-directory: frontend
env:
REACT_APP_GOOGLE_ANALYTICS: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS }}
APP_URL: "https://mapbefine.com/api"

- name: upload to artifact
uses: actions/upload-artifact@v3
Expand All @@ -41,7 +44,7 @@ jobs:
path: frontend/dist

deploy:
runs-on: [ self-hosted, prod]
runs-on: [self-hosted, prod]
needs: build-and-upload

if: github.event.pull_request.merged
Expand All @@ -63,7 +66,7 @@ jobs:

uses: 8398a7/action-slack@v3
with:
mention: 'here'
mention: "here"
if_mention: always
status: ${{ job.status }}
fields: workflow,job,commit,message,ref,author,took
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fe-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Frontend CI For Test Validation
on:
# pull request open과 reopen 시 실행한다.
pull_request:
branches: [main, develop-FE]
branches: [main, develop-FE-2]
paths: frontend/**

defaults:
Expand Down
1 change: 1 addition & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
};
Loading

0 comments on commit f3b43d3

Please sign in to comment.