diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bd74b4f96..ecf4193d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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