This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
[FE] feat: 스토리북 배포 #172
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=${{vars.API_SERVER_URL_DEVELOPMENT}}" >> .env.development | |
echo "DOMAIN_URL=${{vars.WEB_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 }} |