Skip to content

Commit

Permalink
Add CI build and unit-test for prometheus-to-sd
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiulei committed Jul 15, 2024
1 parent f5e5ee2 commit ff0cb03
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 ff0cb03

Please sign in to comment.