1
0
mirror of https://github.com/hustcer/deepseek-review.git synced 2026-05-13 05:16:05 +08:00

chore: Publish test summary (#133)

This commit is contained in:
hustcer
2025-02-16 21:08:20 +08:00
parent 683ed811c6
commit 88ea2aed5e
3 changed files with 34 additions and 2 deletions

View File

@@ -70,3 +70,29 @@ jobs:
--report { type: junit, path: test-report.xml }
--returns summary | to json | save --force test-summary.json
)
- name: Publish Test Summary
if: runner.os == 'macOS' && matrix.version == '*' && github.ref == 'refs/heads/main'
shell: nu {0}
run: |
let gist_id = 'b99391ee59016b17d0befe3331387e89'
let filename = 'test-summary.json'
let data = {
files: {
"test-summary.json": {
content: (open --raw $filename)
}
}
}
(
$data | http patch
--redirect-mode 'follow'
--content-type 'application/json'
--headers {
'Authorization': $'Bearer ${{ secrets.GITHUB_TOKEN }}'
'Accept': 'application/vnd.github+json'
'X-GitHub-Api-Version': '2022-11-28'
}
$'https://api.github.com/gists/($gist_id)'
) | ignore