diff --git a/.github/workflows/BackEnd_CI.yml b/.github/workflows/BackEnd_CI.yml new file mode 100644 index 00000000..50cd3b44 --- /dev/null +++ b/.github/workflows/BackEnd_CI.yml @@ -0,0 +1,30 @@ +name: BackEnd-CI + +on: + push: + branches: 'feature/BE/*' + pull_request: + branches: 'develop' + types: [labeled, opened, synchronize, reopened] + +jobs: + test: + if: contains(github.event.pull_request.labels.*.name, 'πŸ’»λ°±μ—”λ“œ') + runs-on: ubuntu-latest + + steps: + - name: μ½”λ“œ 체크아웃 + uses: actions/checkout@v2 + + - name: node μ„ΈνŒ… + uses: actions/setup-node@v1 + with: + node-version: '18' + + - name: μ˜μ‘΄μ„± μ„€μΉ˜ + run: npm ci + working-directory: ./BackEnd + + - name: ν…ŒμŠ€νŠΈ μ§„ν–‰ + run: npm test + working-directory: ./BackEnd