release: 프론트엔드 v1.0.3 #161
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: 🍔 E2E 테스트 🍔 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
name: E2E Test 딱 대라! | |
env: | |
working-directory: ./frontend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: ✨ Node.js 설정 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: 환경변수 설정 | |
run: | | |
cd /home/runner/work/2023-celuveat/2023-celuveat/frontend/ | |
echo "BASE_URL=$BASE_URL" >> .dev.env | |
echo "PUBLIC_URL=$PUBLIC_URL" >> .dev.env | |
echo "GOOGLE_MAP_API_KEY=$GOOGLE_MAP_API_KEY" >> .dev.env | |
echo "SHARE_KAKAO_LINK_KEY=$SHARE_KAKAO_LINK_KEY" >> .dev.env | |
env: | |
BASE_URL: ${{ secrets.DEV_BASE_URL }} | |
PUBLIC_URL: ${{ secrets.PUBLIC_URL }} | |
GOOGLE_MAP_API_KEY: ${{ secrets.GOOGLE_MAP_API_KEY }} | |
SHARE_KAKAO_LINK_KEY: ${{ secrets.SHARE_KAKAO_LINK_KEY }} | |
- name: 🍔 E2E 테스트 | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ${{ env.working-directory }} | |
start: yarn start:dev | |
install-command: yarn --frozen-lockfile | |
parallel: true | |
wait-on: 'npx wait-on --timeout 60000 http://localhost:3000' | |
command: yarn cy:run | |
browser: chrome | |
- name: ✨ 생성된 비디오를 S3에서 저장 | |
if: failure() | |
env: | |
SOURCE_DIR: '/home/runner/work/2023-celuveat/2023-celuveat/frontend/cypress/videos' | |
AWS_REGION: 'ap-northeast-2' | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_S3_BUCKET_URI: ${{ secrets.AWS_S3_BUCKET_URI }} | |
run: | | |
aws s3 sync $SOURCE_DIR $AWS_S3_BUCKET_URI |