Skip to content

Commit

Permalink
Introduce a group to hide setup from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored and andresailer committed Aug 26, 2022
1 parent 22828fc commit c9ff0e4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ inputs:
runs:
using: "composite"
steps:
- run: |
- name: Run payload
shell: bash
run: |
if [ "${{ inputs.run_local_checkout }}" == "true" ]; then
echo "WARNING running local checkout of the action !"
. setup-lcg-view.sh local
Expand Down
5 changes: 5 additions & 0 deletions run-coverity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -e

echo "::group::Launching container"
echo "Checking if there is a working CVMFS mount"

if [ ! -d "/cvmfs/sft.cern.ch/lcg/" ]; then
Expand Down Expand Up @@ -86,6 +87,8 @@ tar czvf /myproject.tgz cov-int
" > ${GITHUB_WORKSPACE}/coverity_scan.sh
chmod a+x ${GITHUB_WORKSPACE}/coverity_scan.sh

echo "::endgroup::" # Launch container

echo "#####################################################################"
echo "###################### Executing Coverity Scan ######################"
echo "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV"
Expand All @@ -96,6 +99,7 @@ echo "#####################################################################"
echo "###################### Coverity Scan Compelte #######################"
echo "#####################################################################"

echo "::group::Upload artifacts"
echo "Start uploading compilation units for analysis"

docker cp view_worker:/myproject.tgz myproject.tgz
Expand All @@ -110,3 +114,4 @@ if [ "$1" != "local" ]; then
else
echo "Not submitting to server only test run"
fi
echo "::endgroup::"
2 changes: 2 additions & 0 deletions run-linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -e
echo "::group::Launching container"

echo "Checking if there is a working CVMFS mount"

Expand Down Expand Up @@ -61,6 +62,7 @@ else
echo "Docker image ready for ${SYSTEM}"
fi

echo "::endgroup::" # Launch container

echo "####################################################################"
echo "###################### Executing user payload ######################"
Expand Down
5 changes: 5 additions & 0 deletions run-macOS.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/zsh

set -e

echo "::group::Launching container"

if [ -z "${VIEW_PATH}" ]; then
echo "Checking if there is a working CVMFS mount"

Expand Down Expand Up @@ -52,6 +55,8 @@ ${RUN}
" > ${GITHUB_WORKSPACE}/action_payload.sh
chmod a+x ${GITHUB_WORKSPACE}/action_payload.sh

echo "::endgroup::" # Launch container

echo "####################################################################"
echo "###################### Executing user payload ######################"
echo "VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV"
Expand Down

0 comments on commit c9ff0e4

Please sign in to comment.