refactor(ci): use gofmt directly, mark shell scripts clearly

This commit is contained in:
Marc 2024-01-31 23:12:08 -05:00
parent a5d68746a0
commit 3ca2996e43
Signed by: marc
GPG key ID: 048E042F22B5DC79
6 changed files with 9 additions and 5 deletions

View file

@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: . scripts/test
- run: . script/test.sh
integration-tests:
name: "Integration tests"
runs-on: ubuntu-latest
@ -29,4 +29,4 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: . integration/install_specific_version
- run: . integration/install_specific_version.sh

7
script/format.sh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
if [[ -z "$FIX" ]]; then
[ -z "$(gofmt -s -l ./)" ] || exit 1
else
gofmt -s -l -w ./
fi

View file

@ -1,3 +0,0 @@
#!/usr/bin/bash
go fmt ./...