Skip to content

Commit f635c59

Browse files
authored
fix(ci): run devnet module unit tests (#2756)
* Run devnet unit tests in unit-test workflow * Fix `Test_marshalYAML`
1 parent 82745ae commit f635c59

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
chmod +x $HOME/.local/bin/subkey
6767
echo "$HOME/.local/bin" >> $GITHUB_PATH
6868
69+
- name: Run devnet unit tests
70+
run: |
71+
cd devnet && \
72+
go test -timeout=10m ./... && \
73+
cd ..
74+
6975
- name: Run unit tests
7076
run: go test -short -coverprofile=coverage.out -covermode=atomic -timeout=45m ./...
7177

devnet/cmd/update-dd-agent-confd/main_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ func Test_marshalYAML(t *testing.T) {
3737
PrometheusURL: "http://127.0.0.1:9876/metrics",
3838
Metrics: []string{
3939
"gossamer_*",
40-
"network_*",
41-
"service_*",
42-
"system_*",
40+
"go_*",
4341
},
4442
HealthServiceCheck: true,
4543
},
@@ -60,9 +58,7 @@ func Test_marshalYAML(t *testing.T) {
6058
PrometheusURL: "http://127.0.0.1:9876/metrics",
6159
Metrics: []string{
6260
"gossamer_*",
63-
"network_*",
64-
"service_*",
65-
"system_*",
61+
"go_*",
6662
},
6763
HealthServiceCheck: true,
6864
Namespace: "SomeNamespace",

0 commit comments

Comments
 (0)