Skip to content

Update project to use new OCE-Build tool #3

Update project to use new OCE-Build tool

Update project to use new OCE-Build tool #3

Workflow file for this run

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