File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash -exu
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
2
4
3
5
export CGO_ENABLED
4
6
CGO_ENABLED=0
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
- set -euxo pipefail
3
+ set -euo pipefail
4
4
5
5
export CGO_ENABLED
6
6
CGO_ENABLED=0
@@ -13,17 +13,20 @@ function main() {
13
13
export CGO_ENABLED
14
14
CGO_ENABLED=0
15
15
16
+ >&2 echo " Running unit tests..."
16
17
go test -cover -short ./...
18
+
19
+ >&2 echo " Running go vet..."
17
20
go vet ./...
18
21
22
+ >&2 echo " Running golangci-lint run..."
19
23
golangci-lint run ./...
20
24
21
- set +x
22
- echo " Setting GITHUB_ACCESS_TOKEN with 'gh auth token'"
25
+ >&2 echo " Setting GITHUB_ACCESS_TOKEN with 'gh auth token'..."
23
26
export GITHUB_ACCESS_TOKEN
24
27
GITHUB_ACCESS_TOKEN=" $( gh auth token) "
25
- set -x
26
28
29
+ >&2 echo " Running acceptance tests..."
27
30
go test -v -count=1 -tags acceptance --timeout=25m ./internal/acceptance/workflows
28
31
popd > /dev/null
29
32
}
You can’t perform that action at this time.
0 commit comments