This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
[ALL] chore: dev서버 무중단 배포 스크립트 작성 #153
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: Cypress Tests | |
on: | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- frontend/** | |
- .github/** | |
defaults: | |
run: | |
working-directory: ./frontend | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create .env.development file | |
run: | | |
touch .env.development | |
echo "BASE_URL=${{secrets.BASE_URL_DEVELOPMENT}}" >> .env.development | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
start: yarn start:mocking | |
wait-on: 'http://localhost:3000' | |
browser: chrome | |
working-directory: ./frontend | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |