command_line_test 625 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. pipe_to_github_summary() {
  3. if [[ "" == "${GITHUB_STEP_SUMMARY}" ]]; then
  4. cat
  5. else
  6. tee -a "${GITHUB_STEP_SUMMARY}"
  7. fi
  8. }
  9. cd cutbox_command || exit 1
  10. make build
  11. cutbox_cli="$(swift build --show-bin-path)"/CutBoxCLI
  12. if [[ ! -e $cutbox_cli ]]; then
  13. exit 1
  14. fi
  15. cat <<-EOF
  16. ====================================================
  17. CutBox - cutbox cli - build success
  18. ====================================================
  19. Testing...
  20. ----------------------------------------------------
  21. EOF
  22. make test | xcpretty -f ../bin/quickspec_markdown_xcpretty_formatter.rb | pipe_to_github_summary