feat: sonar settings #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- 'main' | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
go-event-kit-api: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./go/event_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.18.0' | |
- run: go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@2cf7fcf5b26d1a4362e7c300bd65c20f4f6c4298 | |
- run: ./build.sh | |
- run: go get | |
- run: go test | |
- run: git diff --exit-code | |
name: "Ensure that Go API changes (as a consequence of OpenAPI spec changes) are checked in" |