Skip to content

Commit c611bfd

Browse files
davewalterrizwanreza
authored andcommitted
Clean up the test.sh script output
1 parent 39a43eb commit c611bfd

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

scripts/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash -exu
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
24

35
export CGO_ENABLED
46
CGO_ENABLED=0

scripts/test.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
set -euxo pipefail
3+
set -euo pipefail
44

55
export CGO_ENABLED
66
CGO_ENABLED=0
@@ -13,17 +13,20 @@ function main() {
1313
export CGO_ENABLED
1414
CGO_ENABLED=0
1515

16+
>&2 echo "Running unit tests..."
1617
go test -cover -short ./...
18+
19+
>&2 echo "Running go vet..."
1720
go vet ./...
1821

22+
>&2 echo "Running golangci-lint run..."
1923
golangci-lint run ./...
2024

21-
set +x
22-
echo "Setting GITHUB_ACCESS_TOKEN with 'gh auth token'"
25+
>&2 echo "Setting GITHUB_ACCESS_TOKEN with 'gh auth token'..."
2326
export GITHUB_ACCESS_TOKEN
2427
GITHUB_ACCESS_TOKEN="$(gh auth token)"
25-
set -x
2628

29+
>&2 echo "Running acceptance tests..."
2730
go test -v -count=1 -tags acceptance --timeout=25m ./internal/acceptance/workflows
2831
popd > /dev/null
2932
}

0 commit comments

Comments
 (0)