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(ci): run devnet unit tests in workflow #2756

Merged
merged 2 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
chmod +x $HOME/.local/bin/subkey
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Run devnet unit tests
run: |
cd devnet && \
go test -timeout=10m ./... && \
cd ..

- name: Run unit tests
run: go test -short -coverprofile=coverage.out -covermode=atomic -timeout=45m ./...

Expand Down
8 changes: 2 additions & 6 deletions devnet/cmd/update-dd-agent-confd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ func Test_marshalYAML(t *testing.T) {
PrometheusURL: "http://127.0.0.1:9876/metrics",
Metrics: []string{
"gossamer_*",
"network_*",
"service_*",
"system_*",
"go_*",
},
HealthServiceCheck: true,
},
Expand All @@ -60,9 +58,7 @@ func Test_marshalYAML(t *testing.T) {
PrometheusURL: "http://127.0.0.1:9876/metrics",
Metrics: []string{
"gossamer_*",
"network_*",
"service_*",
"system_*",
"go_*",
},
HealthServiceCheck: true,
Namespace: "SomeNamespace",
Expand Down