|
42 | 42 | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT |
43 | 43 |
|
44 | 44 | - name: Init Composer Cache # Docs: <https://git.io/JfAKn#php---composer> |
45 | | - uses: actions/cache@v3 |
| 45 | + uses: actions/cache@v4 |
46 | 46 | with: |
47 | 47 | path: ${{ steps.composer-cache.outputs.dir }} |
48 | 48 | key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }} |
|
52 | 52 | run: cd tests/php_test_files && composer update --prefer-dist --no-progress --ansi |
53 | 53 |
|
54 | 54 | - name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> |
55 | | - uses: actions/cache@v3 |
| 55 | + uses: actions/cache@v4 |
56 | 56 | with: |
57 | 57 | path: ~/go/pkg/mod |
58 | 58 | key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
@@ -95,25 +95,35 @@ jobs: |
95 | 95 | uses: actions/upload-artifact@v4 |
96 | 96 | with: |
97 | 97 | name: coverage |
98 | | - path: ./tests/coverage-ci/httpu.out |
| 98 | + path: ./tests/coverage-ci |
99 | 99 |
|
100 | 100 | codecov: |
101 | 101 | name: Upload codecov |
102 | 102 | runs-on: ubuntu-latest |
103 | 103 | needs: |
104 | 104 | - http_test |
105 | | - |
106 | 105 | timeout-minutes: 60 |
107 | 106 | steps: |
| 107 | + - name: Check out code |
| 108 | + uses: actions/checkout@v6 |
108 | 109 | - name: Download code coverage results |
109 | 110 | uses: actions/download-artifact@v8 |
| 111 | + with: |
| 112 | + name: coverage |
| 113 | + path: coverage |
110 | 114 | - run: | |
111 | 115 | echo 'mode: atomic' > summary.txt |
112 | | - tail -q -n +2 *.out >> summary.txt |
113 | | - sed -i '2,${/roadrunner/!d}' summary.txt |
114 | | -
|
| 116 | + tail -q -n +2 coverage/*.out >> summary.txt |
| 117 | + awk ' |
| 118 | + NR == 1 { print; next } |
| 119 | + /^github\.com\/roadrunner-server\/http\/v5\// { |
| 120 | + sub(/^github\.com\/roadrunner-server\/http\/v5\//, "", $0) |
| 121 | + print |
| 122 | + } |
| 123 | + ' summary.txt > summary.filtered.txt |
| 124 | + mv summary.filtered.txt summary.txt |
115 | 125 | - name: upload to codecov |
116 | 126 | uses: codecov/codecov-action@v5 # Docs: <https://github.com/codecov/codecov-action> |
117 | 127 | with: |
118 | | - file: summary.txt |
| 128 | + files: summary.txt |
119 | 129 | fail_ci_if_error: false |
0 commit comments