[FE] merge: yml 레포지토리를 받아오고 의존성 설치하는 로직 추가 (#10) #3
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: 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: 의존성 설치 | |
uses: 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 |