Update ci.yml

Signed-off-by: Mario Candela <m4r10.php@gmail.com>
This commit is contained in:
Mario Candela
2023-03-05 15:22:21 +01:00
committed by GitHub
parent fd7db83fd8
commit 31a75cc128

View File

@ -28,15 +28,15 @@ jobs:
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...
- name: Integration tests
run: |
INTEGRATION=1 go test ./... -v
- name: Unit tests - name: Unit tests
run: | run: |
go test ./... -v -coverprofile coverage.tmp.out -covermode count go test ./... -v -coverprofile coverage.tmp.out -covermode count
go tool cover -func coverage.tmp.out go tool cover -func coverage.tmp.out
- name: Integration tests
run: |
INTEGRATION=1 go test ./... -v
- name: Quality Gate - Test coverage shall be above threshold - name: Quality Gate - Test coverage shall be above threshold
env: env:
TESTCOVERAGE_THRESHOLD: 70 TESTCOVERAGE_THRESHOLD: 70