-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.01 KB
/
tag.yaml
File metadata and controls
40 lines (35 loc) · 1.01 KB
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
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Run test with coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=codnect_tag
-Dsonar.organization=codnect
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.sources=.
-Dsonar.tests=.
-Dsonar.exclusions=**/.github/workflows/**
-Dsonar.test.inclusions=**/*_test.go
-Dsonar.go.coverage.reportPaths=coverage.out