Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/tf log on tests #629

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ on:
type: string
default: "compute"
tf-log:
description: "terraform logs, accepted values: off, trace, debug, info, warn or error"
description: "terraform logs, accepted values: OFF, TRACE, DEBUG, INFO, WARN or ERROR"
required: false
type: string
default: "error"
default: "ERROR"
fail-fast:
description: "toggles the '-failfast' flag for the go test command"
required: false
Expand Down Expand Up @@ -48,10 +48,10 @@ jobs:
go-version-file: 'go.mod'
- name: Run tests for ${{ github.event.inputs.test-tags }}
if: ${{ github.event.inputs.test-tags != '' && github.events.inputs.failfast == true }}
run: go test ./... -v -failfast -timeout 240m -tags ${{ github.event.inputs.test-tags }}
run: go test ./ionoscloud -v -failfast -timeout 240m -tags ${{ github.event.inputs.test-tags }}
- name: Run tests for ${{ github.event.inputs.test-tags }} no failfast
if: ${{ github.event.inputs.test-tags != '' && github.events.inputs.failfast == false }}
run: go test ./... -v -timeout 6h -tags ${{ github.event.inputs.test-tags }}
run: go test ./ionoscloud -v -timeout 6h -tags ${{ github.event.inputs.test-tags }}
- name: Run tests without tags
if: ${{ github.event.inputs.test-tags == ''}}
run: go test ./... -v -failfast -timeout 180m
run: go test ./ionoscloud -v -failfast -timeout 180m
Loading