feat: test add pkg webtuils params and using it in handler and usecase #49
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: SonarCloud Action | |
on: | |
push: | |
branches: [ "main", "stag", "dev" ] | |
pull_request: | |
branches: [ "main", "stag", "dev" ] | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: 'bitnami/postgresql:14.8.0' | |
env: | |
POSTGRES_USER: testuser | |
POSTGRES_PASSWORD: testpass | |
POSTGRES_DB: iquote_fastapi | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.21' # Adjust to your desired Go version | |
- name: Install dependencies | |
run: make deps | |
- name: Test with Go Test | |
run: make test | |
- name: Test with Go Test with Coverage | |
run: make test-coverage | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_ORGANIZATION: nunenuh-github |