Skip to content

Commit 6d3a529

Browse files
committed
Fix workflows
1 parent d8d4d1e commit 6d3a529

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ jobs:
8080
- name: Setup Node version
8181
uses: actions/setup-node@v6
8282
with:
83-
node-version: 22
8483
cache: 'npm'
84+
cache-dependency-path: 'vscode/package-lock.json'
85+
node-version-file: 'vscode/package.json'
8586

8687
- name: Print Maven toolchains.xml
8788
shell: bash
@@ -115,19 +116,18 @@ jobs:
115116

116117
- name: Run VS Code Extenion Tests
117118
uses: GabrielBB/xvfb-action@v1.7
118-
working-directory: ./vscode
119119
env:
120120
PRINT_JDTLS_LOGS: true
121121
with:
122122
run: npm run test
123+
working-directory: ./vscode
123124
options: "-screen 0 1600x1200x24"
124125

125126
- name: Upload Test Results
126127
uses: actions/upload-artifact@v4
127128
if: always()
128129
with:
129130
name: test-results-${{ matrix.os }}
130-
path:
131131
path: |
132132
tests/**/target/surefire-reports/*.xml
133133
vscode/test/**/*.xml

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
name: Publish Latest VS Code Extension
3131
runs-on: ubuntu-latest
3232

33+
# we are very restrictive when this runs, i.e. only on main, only on success and only with the bazel-eclipse repository (not on forks)
34+
if: >
35+
( !github.event.workflow_run ||
36+
( github.event.workflow_run.conclusion == 'success' &&
37+
github.event.workflow_run.event != 'pull_request' )
38+
) &&
39+
github.repository == 'eclipseguru/bazel-eclipse' &&
40+
github.ref == 'refs/heads/main'
41+
3342
steps:
3443
- name: Checkout
3544
uses: actions/checkout@v5
@@ -47,8 +56,9 @@ jobs:
4756
- name: Setup Node version
4857
uses: actions/setup-node@v6
4958
with:
50-
node-version: 22
5159
cache: 'npm'
60+
cache-dependency-path: 'vscode/package-lock.json'
61+
node-version-file: 'vscode/package.json'
5262

5363
- name: 📦 Install dependencies
5464
run: |

vscode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"bugs": "https://github.com/eclipseguru/bazel-eclipse/issues",
1010
"preview": true,
1111
"engines": {
12-
"vscode": "^1.80.0"
12+
"node": "^22.20.0",
13+
"vscode": "^1.106.0"
1314
},
1415
"repository": {
1516
"type": "git",

0 commit comments

Comments
 (0)