Created
January 14, 2021 18:20
-
-
Save jordemort/c19c045b0dd2988e8a87dced298755fe to your computer and use it in GitHub Desktop.
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
on: | |
pull_request: | |
name: Suggestions | |
jobs: | |
shell: | |
name: Shell suggestions | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- uses: actions/setup-go@v2 | |
- run: echo "$HOME/go/bin" >> "$GITHUB_PATH" | |
- run: GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt | |
- name: install shellcheck | |
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/local/bin/ | |
rm -rf "shellcheck-${scversion}/shellcheck" | |
- run: shellcheck -x -f diff $(shfmt -f .) | patch -p1 | |
- run: shfmt -i 2 -ci -w . | |
- name: suggester / shellcheck | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: shellcheck / shfmt | |
ruby: | |
name: Ruby suggestions | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- run: ./scripts/rubocop -A || true | |
- name: suggester / rubocop | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: rubocop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment