-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (40 loc) · 1.16 KB
/
quality.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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