File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 cd tests
4545 mkdir ./coverage-ci
4646
47- go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/lock.out -covermode=atomic lock_test.go rpc.go
47+ go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=github.com/roadrunner-server/lock/v6 -coverprofile=./coverage-ci/lock.out -covermode=atomic lock_test.go rpc.go
4848
4949 - name : Archive code coverage results
5050 uses : actions/upload-artifact@v7
@@ -60,12 +60,25 @@ jobs:
6060
6161 timeout-minutes : 60
6262 steps :
63+ - name : Check out code
64+ uses : actions/checkout@v6
65+
6366 - name : Download code coverage results
6467 uses : actions/download-artifact@v8
68+ with :
69+ name : coverage
70+ path : coverage
6571 - run : |
6672 echo 'mode: atomic' > summary.txt
67- tail -q -n +2 *.out >> summary.txt
68- sed -i '2,${/roadrunner/!d}' summary.txt
73+ tail -q -n +2 coverage/*.out >> summary.txt
74+ awk '
75+ NR == 1 { print; next }
76+ /^github\.com\/roadrunner-server\/lock\/v6\// {
77+ sub(/^github\.com\/roadrunner-server\/lock\/v6\//, "", $0)
78+ print
79+ }
80+ ' summary.txt > summary.filtered.txt
81+ mv summary.filtered.txt summary.txt
6982
7083 - name : upload to codecov
7184 uses : codecov/codecov-action@v6 # Docs: <https://github.com/codecov/codecov-action>
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments