Skip to content

Commit

Permalink
Merge pull request #740 from linxiulei/ci
Browse files Browse the repository at this point in the history
Add CI build and unit-test for prometheus-to-sd
  • Loading branch information
CatherineF-dev authored Jul 15, 2024
2 parents 19978b3 + ff0cb03 commit 2b0baf8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,38 @@ jobs:
run: |
cd custom-metrics-stackdriver-adapter
make build
ci-unit-tests-prometheus-to-sd:
name: ci-unit-tests-prometheus-to-sd
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Unit tests
run: |
cd prometheus-to-sd
make test
ci-build-prometheus-to-sd:
name: ci-build-prometheus-to-sd
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Build
run: |
cd prometheus-to-sd
make build

0 comments on commit 2b0baf8

Please sign in to comment.