mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 22:34:15 -05:00
ci: exclude integration tests for now (#3188)
A workaround for inconsistent results on Windows
This commit is contained in:
parent
9eecd698da
commit
ba08833b2a
2 changed files with 6 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -93,7 +93,7 @@ jobs:
|
||||||
# continue-on-error: true
|
# continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
# (go test -v -coverprofile=cover-profile.out -race ./... 2>&1) > test-results/test-result.out
|
# (go test -v -coverprofile=cover-profile.out -race ./... 2>&1) > test-results/test-result.out
|
||||||
go test -v -coverprofile="cover-profile.out" -race ./...
|
go test -v -coverprofile="cover-profile.out" -short -race ./...
|
||||||
# echo "::set-output name=status::$?"
|
# echo "::set-output name=status::$?"
|
||||||
|
|
||||||
# Relevant step if we reinvestigate publishing test/coverage reports
|
# Relevant step if we reinvestigate publishing test/coverage reports
|
||||||
|
|
|
@ -68,6 +68,11 @@ func InitServer(t *testing.T, rawConfig string, configType string) {
|
||||||
// type. The configType must be either "json" or the adapter type.
|
// type. The configType must be either "json" or the adapter type.
|
||||||
func initServer(t *testing.T, rawConfig string, configType string) error {
|
func initServer(t *testing.T, rawConfig string, configType string) error {
|
||||||
|
|
||||||
|
if testing.Short() {
|
||||||
|
t.SkipNow()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
err := validateTestPrerequisites()
|
err := validateTestPrerequisites()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Skipf("skipping tests as failed integration prerequisites. %s", err)
|
t.Skipf("skipping tests as failed integration prerequisites. %s", err)
|
||||||
|
|
Loading…
Reference in a new issue