Skip to content

Commit 845760e

Browse files
committed
[misc] correct code coverage on CI
1 parent 946370a commit 845760e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,27 @@ jobs:
9090
LOCAL_DB: ${{ steps.mariadb-install.outputs.database-type }}
9191
DB_TYPE: ${{ matrix.db-type }}
9292

93+
- name: Download Codecov uploader
94+
shell: bash
95+
run: |
96+
case "$RUNNER_OS" in
97+
Windows)
98+
powershell -Command Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
99+
choco install -y --force nodejs-lts
100+
# force refresh path
101+
export PATH=$(cmd.exe //c "refreshenv > nul & C:\Progra~1\Git\bin\bash -c 'echo \$PATH' ")
102+
;;
103+
Linux)
104+
curl -Os https://uploader.codecov.io/latest/linux/codecov
105+
chmod +x codecov
106+
ls -lrt
107+
;;
108+
macOS)
109+
curl -Os https://uploader.codecov.io/latest/macos/codecov
110+
chmod +x codecov
111+
ls -lrt
112+
;;
113+
esac
114+
93115
- name: Generate Coverage Report
94116
run: npm run coverage:report

0 commit comments

Comments
 (0)