Skip to content

test: 성공 테스트 코드 테스트 #3

test: 성공 테스트 코드 테스트

test: 성공 테스트 코드 테스트 #3

Workflow file for this run

name: 🍔 E2E 테스트 🍔
on:
push:
branches:
- citestbranch
paths:
- 'frontend/**'
pull_request:
branches:
- citestbranch
paths:
- 'frontend/**'
jobs:
E2E-test:
runs-on: ubuntu-latest
env:
working-directory: ./frontend
name: 🍔테스트 딱 대라 💢👊
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.16.1'
- name: 🍔 Get npm cache directory
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v3
- name: 🍔 Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 🍔 yarn install
run: yarn install
working-directory: ${{ env.working-directory }}
- name: 🍔 E2E 테스트
uses: cypress-io/github-action@v5
with:
working-directory: ${{ env.working-directory }}
start: yarn start
browser: chrome
env:
API_URL: ${{ secrets.API_URL }}