Skip to content

Commit

Permalink
Beautify GH action output (#269)
Browse files Browse the repository at this point in the history
Add comments to each scripts, as first line is what is being displayed
in Github Action output.
  • Loading branch information
deathaxe committed May 3, 2024
1 parent f8c81dd commit 59b8b87
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions actions/run-color-scheme-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ runs:
using: 'composite'
steps:
- run: |
# Run Color Scheme Tests
. $GITHUB_ACTION_PATH/../setup/utils.sh
InstallPackage "ColorSchemeUnit" "https://github.com/gerardroche/sublime-color-scheme-unit"
Expand Down
1 change: 1 addition & 0 deletions actions/run-syntax-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ runs:
using: 'composite'
steps:
- run: |
# Run Syntax Tests
PACKAGE_FROM_INPUTS="${{ inputs.package-name }}"
PACKAGE="${PACKAGE_FROM_INPUTS:-$PACKAGE}"
Expand Down
4 changes: 3 additions & 1 deletion actions/run-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ runs:
using: 'composite'
steps:
- run: |
# Run UnitTests
PACKAGE_FROM_INPUTS="${{ inputs.package-name }}"
PACKAGE="${PACKAGE_FROM_INPUTS:-$PACKAGE}"
Expand All @@ -26,7 +27,8 @@ runs:
fi
shell: bash
- if: inputs.codecov-upload == 'true'
run:
run: |
# Run UnitTests
echo "The setting `codecov-upload` is deprecated."
echo "Please call the action `codecov/codecov-action` directly".
shell: bash
Expand Down
8 changes: 8 additions & 0 deletions actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ runs:
steps:
- name: Setup Environment Variables
run: |
# Setup Environment Variables
if [ "${{ runner.os }}" = "Windows" ]; then
echo "c:\st" >> $GITHUB_PATH
else
Expand Down Expand Up @@ -98,6 +99,7 @@ runs:
- name: Setup Graphical User Interface
if: runner.os == 'Linux'
run: |
# Setup Graphical User Interface
sudo bash $GITHUB_ACTION_PATH/install_ubuntu_sys_req.sh
echo "DISPLAY=:1" >> $GITHUB_ENV
# install display driver
Expand All @@ -120,6 +122,7 @@ runs:
- name: Start Graphical User Interface
if: runner.os == 'Linux'
run: |
# Start Graphical User Interface
case ${{ inputs.display }} in
xvfb)
Xvfb $DISPLAY -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
Expand All @@ -146,6 +149,7 @@ runs:
shell: bash
- name: Install Sublime Text
run: |
# Install Sublime Text
# download and install Sublime Text
if [ "${{ runner.os }}" = "Windows" ]; then
pwsh $GITHUB_ACTION_PATH/install_sublime_text.ps1 --verbose;
Expand All @@ -157,6 +161,7 @@ runs:
shell: bash
- name: Determine Test Package
run: |
# Determine Test Package
REPO="$GITHUB_REPOSITORY"
if [ "${{ inputs.install-package }}" = "true" ]; then
cd "${{ inputs.package-path }}"
Expand All @@ -174,6 +179,8 @@ runs:
shell: bash
- name: Install Packages
run: |
# Install Packages
# Disable warnings about detached HEAD
# https://stackoverflow.com/questions/36794501
git config --global advice.detachedHead false
Expand Down Expand Up @@ -222,6 +229,7 @@ runs:
- name: Install Package Control
if: inputs.install-package-control == 'true'
run: |
# Install Package Control
if [ "${{ runner.os }}" = "Windows" ]; then
pwsh $GITHUB_ACTION_PATH/install_package_control.ps1 --verbose;
else
Expand Down

0 comments on commit 59b8b87

Please sign in to comment.