Skip to content

Commit

Permalink
Clean up the test.sh script output
Browse files Browse the repository at this point in the history
  • Loading branch information
davewalter authored and rizwanreza committed Nov 21, 2024
1 parent 39a43eb commit c611bfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -exu
#!/usr/bin/env bash

set -euo pipefail

export CGO_ENABLED
CGO_ENABLED=0
Expand Down
13 changes: 8 additions & 5 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash

set -euxo pipefail
set -euo pipefail

export CGO_ENABLED
CGO_ENABLED=0
Expand All @@ -13,17 +13,20 @@ function main() {
export CGO_ENABLED
CGO_ENABLED=0

>&2 echo "Running unit tests..."
go test -cover -short ./...

>&2 echo "Running go vet..."
go vet ./...

>&2 echo "Running golangci-lint run..."
golangci-lint run ./...

set +x
echo "Setting GITHUB_ACCESS_TOKEN with 'gh auth token'"
>&2 echo "Setting GITHUB_ACCESS_TOKEN with 'gh auth token'..."
export GITHUB_ACCESS_TOKEN
GITHUB_ACCESS_TOKEN="$(gh auth token)"
set -x

>&2 echo "Running acceptance tests..."
go test -v -count=1 -tags acceptance --timeout=25m ./internal/acceptance/workflows
popd > /dev/null
}
Expand Down

0 comments on commit c611bfd

Please sign in to comment.