Skip to content

Commit e04071b

Browse files
authored
Test result (#31)
* Split extractions of test results per OS * Fix path * Skip uploading products for now
1 parent 56c13fb commit e04071b

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
uses: actions/upload-artifact@v5
107107
if: always()
108108
with:
109-
name: test-results-maven-${{ matrix.os }}
109+
name: test-results-${{ matrix.os }}-maven
110110
path: tests/**/target/surefire-reports/*.xml
111111

112112
- name: Install Node dependencies
@@ -134,7 +134,7 @@ jobs:
134134
uses: actions/upload-artifact@v5
135135
if: always()
136136
with:
137-
name: test-results-vscode-${{ matrix.os }}
137+
name: test-results-${{ matrix.os }}-vscode
138138
path: vscode/test/result/**/*.*
139139

140140
- name: Upload screenshots on failure
@@ -166,7 +166,7 @@ jobs:
166166

167167
- name: Upload JDTLS Products
168168
uses: actions/upload-artifact@v5
169-
if: success() && matrix.os == 'ubuntu-latest'
169+
if: success() && matrix.os == 'skip-product-upload-for-now'
170170
with:
171171
name: jdt-bazel-ls
172172
path: |
@@ -176,7 +176,7 @@ jobs:
176176

177177
- name: Upload SCIPLS Products
178178
uses: actions/upload-artifact@v5
179-
if: success() && matrix.os == 'ubuntu-latest'
179+
if: success() && matrix.os == 'skip-product-upload-for-now'
180180
with:
181181
name: scip-bazel-ls
182182
path: |

.github/workflows/publish-vscode-extension.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ jobs:
8383
uses: HaaLeo/publish-vscode-extension@v2
8484
id: publishToVscMktp
8585
with:
86-
preRelease: ${{ github.event.inputs.releaseChannel == 'edge' && true || false }}
87-
pat: ${{ secrets.VSC_MKTP_TOKEN }}
88-
registryUrl: https://marketplace.visualstudio.com
86+
packagePath: ./vscode
87+
preRelease: ${{ github.event.inputs.releaseChannel == 'edge' && true || false }}
88+
pat: ${{ secrets.VSC_MKTP_TOKEN }}
89+
registryUrl: https://marketplace.visualstudio.com
8990

9091
- name: 🚀 Publish to Open VSX Registry
9192
uses: HaaLeo/publish-vscode-extension@v2
9293
with:
94+
packagePath: ./vscode
9395
preRelease: ${{ github.event.inputs.releaseChannel == 'edge' && true || false }}
9496
pat: ${{ secrets.OPEN_VSX_TOKEN }}
9597
extensionFile: ${{ steps.publishToVscMktp.outputs.vsixPath }}

.github/workflows/test-results.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,29 @@ jobs:
2020
actions: read
2121

2222
steps:
23-
- name: Download and Extract Artifacts
23+
- name: Download and Extract run info
2424
uses: dawidd6/action-download-artifact@v11
2525
with:
2626
run_id: ${{ github.event.workflow_run.id }}
27-
name: (test-results.*|ci-event-file)
28-
name_is_regexp: true
27+
name: ci-event-file
2928
path: artifacts
3029

30+
- name: Download and Extract Ubuntu test results
31+
uses: dawidd6/action-download-artifact@v11
32+
with:
33+
run_id: ${{ github.event.workflow_run.id }}
34+
name: test-results-ubuntu.*
35+
name_is_regexp: true
36+
path: artifacts/ubuntu
37+
38+
- name: Download and Extract MacOS test results
39+
uses: dawidd6/action-download-artifact@v11
40+
with:
41+
run_id: ${{ github.event.workflow_run.id }}
42+
name: test-results-macos.*
43+
name_is_regexp: true
44+
path: artifacts/macos
45+
3146
- name: 📣 Publish Unit Test Results
3247
uses: EnricoMi/publish-unit-test-result-action@v2
3348
with:
@@ -37,6 +52,5 @@ jobs:
3752
files: |
3853
artifacts/**/*.xml
3954
artifacts/**/*.json
40-
artifacts/*test.json
41-
!artifacts/ci-event-file/event.json
55+
!artifacts/**/event.json
4256

0 commit comments

Comments
 (0)