Skip to content

Commit bafafa1

Browse files
committed
ci: bump php to 8.5, replace pkgs.txt with hardcoded v6 coverpkg, modernize codecov filter to awk path-rewrite
1 parent 6617e07 commit bafafa1

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/linux.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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>

tests/pkgs.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)