Commit ba81d2da authored by Bertrand Goareguer's avatar Bertrand Goareguer Committed by Clement Bois
Browse files

fix: show ng-outdated and ng-audit logs on failure

parent bce1aa7b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -817,8 +817,7 @@ ng-audit:
        npm audit --json $NG_AUDIT_ARGS > reports/ng-audit.native.json || true
      fi
    # last run with console output
    - npm audit $NG_AUDIT_ARGS > reports/ng-audit.txt
    - cat reports/ng-audit.txt
    - npm audit $NG_AUDIT_ARGS | tee reports/ng-audit.txt
  artifacts:
    when: always
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
@@ -839,14 +838,15 @@ ng-outdated:
  stage: test
  needs: []
  script:
    # JSON (for DefectDojo)
    - |
      mkdir -p -m 777 reports
      if [[ "$DEFECTDOJO_NPMAUDIT_REPORTS" ]]
      then
        npm outdated --json $NG_OUTDATED_ARGS > reports/ng-outdated.native.json || true
      fi
    - npm outdated $NG_OUTDATED_ARGS > reports/ng-outdated.txt
    - cat reports/ng-outdated.txt
    # last run with console output
    - npm outdated $NG_OUTDATED_ARGS | tee reports/ng-outdated.txt
  artifacts:
    when: always
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"