File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 35
35
version : v1.60
36
36
args : --timeout=5m
37
37
working-directory : watcher
38
- - name : Run tests
39
- run : go test -v ./...
38
+ - name : Run tests with coverage
39
+ run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
40
+ - name : Upload results to Codecov
41
+ uses : codecov/codecov-action@v4
42
+ with :
43
+ token : ${{ secrets.CODECOV_TOKEN }}
44
+ files : ./backend/coverage.xml
45
+ slug : aai-institute/infrastructure-product
46
+ flags : backend
47
+ - name : Upload test results to Codecov
48
+ if : ${{ !cancelled() }}
49
+ uses : codecov/test-results-action@v1
50
+ with :
51
+ token : ${{ secrets.CODECOV_TOKEN }}
52
+ files : ./backend/junit.xml
53
+ slug : aai-institute/infrastructure-product
54
+ flags : backend
Original file line number Diff line number Diff line change 1
1
ignore :
2
2
- " test_*.py"
3
3
- " **/tests/**"
4
+ - " *_test.go"
4
5
coverage :
5
6
status :
6
7
project : off
@@ -15,3 +16,7 @@ flag_management:
15
16
paths :
16
17
- " backend/"
17
18
carryforward : true
19
+ - name : watcher
20
+ paths :
21
+ - " watcher/"
22
+ carryforward : true
Original file line number Diff line number Diff line change 3
3
4
4
# Helm chart directory
5
5
! deploy /**
6
+
7
+ # Test coverage
8
+ coverage.txt
You can’t perform that action at this time.
0 commit comments