Skip to content

refa: add ClearRegisteredDiscoveries() for test purposes #134

refa: add ClearRegisteredDiscoveries() for test purposes

refa: add ClearRegisteredDiscoveries() for test purposes #134

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
go-discovery-kit-api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go/discovery_kit_api
steps:
- uses: actions/checkout@v4
with:
# increased fetch depth to support git diff
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- run: ./build.sh
- run: git diff --exit-code
name: "Ensure that Go API changes (as a consequence of OpenAPI spec changes) are checked in"
- run: go get
- run: go test
go-discovery-kit-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go/discovery_kit_test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Audit
run: |
go mod download
make audit
go-discovery-kit-commons:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go/discovery_kit_commons
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Audit
run: |
go mod download
make audit
go-discovery-kit-sdk:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go/discovery_kit_sdk
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Audit
run: |
go mod download
make audit