Skip to content

Commit 2b0baf8

Browse files
Merge pull request GoogleCloudPlatform#740 from linxiulei/ci
Add CI build and unit-test for prometheus-to-sd
2 parents 19978b3 + ff0cb03 commit 2b0baf8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,38 @@ jobs:
5353
run: |
5454
cd custom-metrics-stackdriver-adapter
5555
make build
56+
ci-unit-tests-prometheus-to-sd:
57+
name: ci-unit-tests-prometheus-to-sd
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Check out code into the Go module directory
61+
uses: actions/checkout@v4
62+
63+
- name: Set up Go 1.x
64+
uses: actions/setup-go@v5
65+
with:
66+
go-version: ${{ env.GO_VERSION }}
67+
id: go
68+
69+
- name: Unit tests
70+
run: |
71+
cd prometheus-to-sd
72+
make test
73+
74+
ci-build-prometheus-to-sd:
75+
name: ci-build-prometheus-to-sd
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Check out code into the Go module directory
79+
uses: actions/checkout@v4
80+
81+
- name: Set up Go 1.x
82+
uses: actions/setup-go@v5
83+
with:
84+
go-version: ${{ env.GO_VERSION }}
85+
id: go
86+
87+
- name: Build
88+
run: |
89+
cd prometheus-to-sd
90+
make build

0 commit comments

Comments
 (0)