Github Action - PR할 때마다 테스트 실행
Github Action이란?
코드 샘플
name: Test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Test
run: npm run test:allWorkflow 구성요소?
* Test 실패 시 Merge 막는 방법?
출처
Last updated


