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:
26
.github/workflows/tests.yml
vendored
26
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user