nugawiki

./categories/dev-ops

GitHub Actions Step 실패 제어

업데이트 2026-07-21 조회수

Step 실패 후에도 후속 Step 실행

continue-on-error (실패를 성공으로 취급 → 이후 전부 진행)

- name: Test with Gradle
  continue-on-error: true
  run: ./gradlew :app:testDebug

if: failure() (실패 시에만 실행 — 리포트 업로드 등)

- name: Upload Test
  if: failure()
  uses: actions/upload-artifact@v3
  with:
    name: test-report
    path: app/build/reports/tests/testDebugUnitTest/index.html

./comments