refactor(ci): use gofmt directly, mark shell scripts clearly
This commit is contained in:
parent
a5d68746a0
commit
3ca2996e43
6 changed files with 9 additions and 5 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- run: . scripts/test
|
- run: . script/test.sh
|
||||||
integration-tests:
|
integration-tests:
|
||||||
name: "Integration tests"
|
name: "Integration tests"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -29,4 +29,4 @@ jobs:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- run: . integration/install_specific_version
|
- run: . integration/install_specific_version.sh
|
||||||
|
|
7
script/format.sh
Normal file
7
script/format.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if [[ -z "$FIX" ]]; then
|
||||||
|
[ -z "$(gofmt -s -l ./)" ] || exit 1
|
||||||
|
else
|
||||||
|
gofmt -s -l -w ./
|
||||||
|
fi
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
go fmt ./...
|
|
Loading…
Reference in a new issue