Skip to content

Commit 9d7b9c6

Browse files
committed
Test upload coverage workflow
1 parent 099b8e2 commit 9d7b9c6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/run-tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
steps:
4646
- name: Checkout code
4747
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 2
4850

4951
- name: Setup PHP
5052
uses: shivammathur/setup-php@v2
@@ -59,7 +61,12 @@ jobs:
5961
- name: Execute type coverage tests
6062
run: vendor/bin/pest --type-coverage --type-coverage-json=build/logs/pest-coverage.json
6163

62-
- name: Upload coverage results
63-
run: |
64-
bash <(curl -s https://raw.githubusercontent.com/getOtterWise/bash-uploader/main/uploader.sh) --repo-token ${{ secrets.OTTERWISE_TOKEN }}
65-
bash <(curl -s https://raw.githubusercontent.com/getOtterWise/bash-uploader/main/uploader.sh) --type-coverage-file build/logs/pest-coverage.json
64+
- name: Upload Test Coverage
65+
env:
66+
OTTERWISE_TOKEN: ${{ secrets.OTTERWISE_TOKEN }}
67+
run: bash <(curl -s https://raw.githubusercontent.com/getOtterWise/bash-uploader/main/uploader.sh)
68+
69+
- name: Upload Types Coverage
70+
env:
71+
OTTERWISE_TOKEN: ${{ secrets.OTTERWISE_TOKEN }}
72+
run: bash <(curl -s https://raw.githubusercontent.com/getOtterWise/bash-uploader/main/uploader.sh) --type-coverage-file build/logs/pest-coverage.json

0 commit comments

Comments
 (0)