Skip to content

Commit

Permalink
ci: bump shfmt to 3.4.3
Browse files Browse the repository at this point in the history
Also, use https://github.com/mfinelli/setup-shfmt do install shfmt from
a release binary (rather than compile in place), since this is much
faster/simpler.

Release notes: https://github.com/mvdan/sh/releases

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Mar 9, 2022
1 parent 4e0d689 commit fbaf08e
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: vars
run: |
echo "VERSION=3.3.1" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: cache go mod and $GOCACHE
uses: actions/cache@v2
- uses: mfinelli/setup-shfmt@v1
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-shfmt-${{ env.VERSION }}
restore-keys: ${{ runner.os }}-shfmt-
- name: install shfmt
run: |
command -v shfmt || \
(cd ~ && GO111MODULE=on time go get mvdan.cc/sh/v3/cmd/shfmt@v$VERSION)
shfmt-version: 3.4.3
- name: shfmt
run: make shfmt

Expand Down

0 comments on commit fbaf08e

Please sign in to comment.