OCE Build Rewrite #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Analyze | |
on: | |
# Skips build process for changes to only **docs** or **.github** directories. | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '!.github/**' | |
- '!docs/**' | |
- '!.gitattributes' | |
- '!.gitignore' | |
- 'scripts/**' | |
# Enables trigger for pull requests when making changes to **src** directory. | |
pull_request: | |
branches: | |
- 'main' | |
- 'development' | |
paths: | |
- 'scripts/**' | |
workflow_dispatch: | |
jobs: | |
shellcheck: | |
name: Run Shellcheck | |
timeout-minutes: 2 | |
runs-on: ubuntu-latest | |
steps: | |
# Fetches remote repository without --progress option. | |
# | |
# The default behavior of @actions/checkout outputs many noisy lines of | |
# status output in the workflow log, which is problematic for log size. | |
- name: Checkout latest repository commit | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
# Installs shellcheck dependency. | |
- name: Install Shellcheck dependencies | |
shell: bash | |
run: | | |
scversion="latest" | |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | |
sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/ | |
# Run shellcheck on each .tool/.command/.sh file with info verbosity. | |
- name: Run shellcheck | |
shell: sh | |
run: bash .github/scripts/shellcheck.sh |