Add basic structure for HTTP server and web context #111
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: Quality | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
name: quality | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: test | |
run: | | |
go install github.com/ory/go-acc@latest | |
go install github.com/golang/mock/mockgen@v1.6.0 | |
go mod download | |
make test | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.organization=colibri-project-io | |
-Dsonar.projectKey=colibri-project-io_colibri-sdk-go | |
-Dsonar.sources=. | |
-Dsonar.exclusions=**/*_test.go,**/*.sql,**/*_mock.go,colibri.go | |
-Dsonar.tests=. | |
-Dsonar.test.inclusions=**/*_test.go | |
-Dsonar.go.coverage.reportPaths=/github/workspace/coverage.txt |