Skip to content

chore(deps): update actions/checkout digest to b4ffde6 - autoclosed #57

chore(deps): update actions/checkout digest to b4ffde6 - autoclosed

chore(deps): update actions/checkout digest to b4ffde6 - autoclosed #57

Workflow file for this run

name: Test
on:
pull_request:
jobs:
test-gofmt:
name: runner / suggester / gofmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- run: gofmt -w -s .
- uses: ./
with:
tool_name: gofmt
filter_mode: nofilter
test-shell:
name: runner / suggester / shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- run: shfmt -i 2 -ci -w .
- name: suggester / shfmt
uses: ./
with:
tool_name: shfmt
# Need to install latest shellcheck to use diff output format as of writing (2020/08/03).
- 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 -f diff "$(shfmt -f .)" | patch -p1
- name: suggester / shellcheck
uses: ./
with:
tool_name: shellcheck