Skip to content

[#1] 프로젝트 셋업 / TDD를 위한 deeplyCopy 테스트 코드 작성 / Dual Package 지원 #15

[#1] 프로젝트 셋업 / TDD를 위한 deeplyCopy 테스트 코드 작성 / Dual Package 지원

[#1] 프로젝트 셋업 / TDD를 위한 deeplyCopy 테스트 코드 작성 / Dual Package 지원 #15

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