Merge pull request #18098 from pgellert/quotas/node-wide-throttling #4
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: Lint sh | |
on: | |
push: | |
branches: | |
- 'dev' | |
paths: | |
- '**.sh' | |
tags-ignore: | |
- '**' | |
pull_request: | |
paths: | |
- '**.sh' | |
- tests/docker/ducktape-deps/tinygo-wasi-transforms | |
jobs: | |
sh: | |
name: Lint shell scripts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install shfmt | |
env: | |
SHFMT_VER: 3.6.0 | |
run: | | |
mkdir -v -p "$HOME/.local/bin" | |
wget -O "$HOME/.local/bin/shfmt" "https://github.com/mvdan/sh/releases/download/v${SHFMT_VER}/shfmt_v${SHFMT_VER}_linux_amd64" | |
chmod 0700 "$HOME/.local/bin/shfmt" | |
- name: Run shfmt | |
run: shfmt -i 2 -ci -s -d . |