diff --git a/.github/workflows/coding-style-check.yml b/.github/workflows/coding-style-check.yml index d06bfd7b3c..2321d31f96 100644 --- a/.github/workflows/coding-style-check.yml +++ b/.github/workflows/coding-style-check.yml @@ -34,7 +34,7 @@ jobs: # As this action runs with minimal permissions and does not influence the build output, # we perform no version pinning for the runner or the installed tools here. # The clangFormatVersion is based on Ubuntu current LTS (jammy at time of writing). - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - name: Check .cpp/.h/.mm with clang-format @@ -47,20 +47,22 @@ jobs: check-bash-style: name: Verify shell script (Bash) coding style - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # shellcheck is already pre-installed on ubuntu-latest steps: - uses: actions/checkout@v7 - name: Check .sh with shellcheck run: find -name '*.sh' -not -path './libs/*' -exec shellcheck --shell=bash {} + + - name: Update package index + run: sudo apt-get update - name: Install shfmt - run: sudo snap install shfmt + run: sudo apt-get -qq install shfmt - name: Check .sh with shfmt run: shfmt -d . check-python-style: name: Verify Python coding style - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - name: Install pylint