-
Notifications
You must be signed in to change notification settings - Fork 44
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
chore(ci): rename acctest workflow since it only applies to Metal #728
Conversation
58d26cb
to
71e4c84
Compare
71e4c84
to
3fc844a
Compare
@@ -110,7 +110,7 @@ jobs: | |||
METAL_AUTH_TOKEN: ${{ secrets.METAL_AUTH_TOKEN }} | |||
TF_ACC_METAL_DEDICATED_CONNECTION_ID: ${{ secrets.TF_ACC_METAL_DEDICATED_CONNECTION_ID }} | |||
run: | | |||
go test ./... -v -coverprofile coverage.txt -covermode=atomic -count 1 -parallel 8 -run "(Metal)|(Provider)|(Migration)" -timeout 180m | |||
go test ./... -v -coverprofile coverage.txt -covermode=atomic -count 1 -parallel 8 -run "(Metal)" -timeout 180m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was curious if there were tests like FCR...Metal
. There are not.
$ git grep 'func\ Test.*Metal' | grep -E -v -e 'TestAcc((Pre)?Check)?(?i:(Data|Re)Source)?Metal'
internal/resources/metal/vlan/datasource_test.go:func TestMetalVlan_matchingVlan(t *testing.T) {
@@ -50,7 +50,7 @@ jobs: | |||
run: go build -v . | |||
|
|||
- name: TF tests | |||
run: go test -v --coverprofile coverage.txt -covermode=atomic -parallel 4 $(go list ./... |grep -v 'tests') | |||
run: go test -v --coverprofile coverage.txt -covermode=atomic -parallel 4 ./... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the intent of the old code was to ignore coverage of the tests themselves (or testing_helpers). Should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The go list
subcommand was added to avoid running the terragrunt tests in the tests
directory since there was no way to make them work in CI. Those tests have since been deleted, so the subcommand was effectively a no-op after that.
This PR is included in version 2.2.0 🎉 |
No description provided.