Skip to content

[FE] 프론트엔드 CICD테스트 #7

[FE] 프론트엔드 CICD테스트

[FE] 프론트엔드 CICD테스트 #7

name: frontEnd test deploy
on:
pull_request:
branches: FE/release
jobs:
build-test-deploy:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.16.0]
steps:
- name: 체크아웃
uses: actions/checkout@v3
- name: 의존성 설치
working-directory: ./frontEnd
run: npm install
- name: ✅ 유닛 테스트
working-directory: ./frontEnd
run: npm test
- name: 📦 프로젝트 빌드
working-directory: ./frontEnd
run: npm run build
- name: ⬆️ Object Storage 업로드
working-directory: ./frontEnd
env:
AWS_ACCESS_KEY_ID: '${{secrets.AWS_ACCESS_KEY_ID}}'
AWS_SECRET_ACCESS_KEY: '${{secrets.AWS_SECRET_ACCESS_KEY}}'
run: |
aws --endpoint-url=https://kr.object.ncloudstorage.com s3 cp --recursive dist s3://algoitni