[#1] 프로젝트 셋업 / TDD를 위한 deeplyCopy 테스트 코드 작성 / Dual Package 지원 #15
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: Run Jest Tests on Pull Request | |
on: | |
# Triggers the workflow on pull request events but only for the "feature/*" branch | |
pull_request: | |
branches: ["main"] | |
paths-ignore: # Ensure this is also considered to ignore certain paths if needed | |
- '!feature/1' # Exclude the specific branch | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
if: github.head_ref != 'feature/1' # Condition to exclude the branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run Jest tests | |
run: pnpm test -- --coverage |