Skip to content

Commit 38e62d8

Browse files
committed
Generate codecov path fix in the action
1 parent 4c9b9af commit 38e62d8

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,15 @@ jobs:
277277
fi
278278
working-directory: ./phpBB3
279279

280+
- name: Setup Codecove.io Path Fix
281+
if: ${{ matrix.COVERAGE == '1' }}
282+
run: |
283+
if [ ! -f .github/codecov.yml ]; then
284+
mkdir -p .github
285+
echo "fixes:" > .github/codecov.yml
286+
echo " - \"/phpBB3/phpBB/ext/${EXTNAME}::\"" >> .github/codecov.yml
287+
fi
288+
280289
- name: Run unit tests
281290
env:
282291
DB: ${{steps.database-type.outputs.db}}

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ jobs:
4949
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x # The phpBB branch to run tests with
5050
with:
5151
EXTNAME: acme/demo # Your extension vendor/package name
52-
secrets:
53-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Do not edit or remove this
5452
```
5553
5654
### Branches

0 commit comments

Comments
 (0)