Skip to content

Commit aaf774d

Browse files
committed
Handle multiple files and sanitize gemfile path
1 parent cb294bd commit aaf774d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ jobs:
7070
- name: Run tests
7171
run: bundle exec rspec
7272

73+
- name: Sanitize gemfile path
74+
run: echo "SANITIZED_GEMFILE=${{ matrix.gemfile }}" | tr '/' '-' >> $GITHUB_ENV
75+
7376
- name: Upload test coverage folder for later reporting
7477
uses: actions/upload-artifact@v4
7578
with:
76-
name: coverage-${{ matrix.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}
79+
name: coverage-${{ matrix.os }}-${{ matrix.ruby }}-${{ env.SANITIZED_GEMFILE }}
7780
path: coverage-*/*.json
7881
retention-days: 1
7982

@@ -82,17 +85,20 @@ jobs:
8285
runs-on: ubuntu-latest
8386
needs: test
8487
if: success() && github.ref == 'refs/heads/main'
85-
env:
86-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
8788
steps:
8889
- uses: actions/checkout@v4
8990

9091
- name: Download coverage reports from the test job
9192
uses: actions/download-artifact@v4
93+
with:
94+
merge-multiple: true
9295

9396
- uses: paambaati/[email protected]
97+
env:
98+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
9499
with:
95-
coverageLocations: "coverage-*/*.json:simplecov"
100+
coverageLocations: |
101+
${{github.workspace}}/coverage-*/*.json:simplecov
96102
97103
smoke:
98104
name: Built GEM smoke test

0 commit comments

Comments
 (0)