매트릭스 전략
jobs:
test:
strategy:
matrix:
node: [18, 20, 22]
os: [ubuntu-latest, macos-latest]
exclude:
- { node: 18, os: macos-latest }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v4
with: { node-version: ${{ matrix.node }} }
- run: npm test재사용 워크플로
# .github/workflows/deploy.yml
on:
workflow_call:
inputs:
environment: { type: string, required: true }
jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
댓글 0