-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42009b4
commit 4a87e55
Showing
2 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
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 |
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