@@ -16,19 +16,19 @@ permissions:
1616
1717jobs :
1818 normal-tests :
19- runs-on : buildjet-2vcpu-ubuntu-2204
19+ runs-on : ubicloud-standard-2
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v6
2222 - name : Assure different pom cache hit
2323 run : echo " " >> rascal-lsp/pom.xml
24- - uses : actions/setup-java@v4
24+ - uses : actions/setup-java@v5
2525 with :
2626 java-version : 11
2727 distribution : ' temurin'
2828 cache : ' maven'
2929
3030 - name : setup node
31- uses : actions/setup-node@v4
31+ uses : actions/setup-node@v6
3232 with :
3333 node-version : 20.x
3434 cache : ' npm'
3737
3838 - name : Run java tests
3939 working-directory : ./rascal-lsp
40- run : mvn -B '-Drascal.compile.skip' '-Drascal.tutor.skip' test -DargLine="-Xmx4G "
40+ run : mvn -B '-Drascal.compile.skip' '-Drascal.tutor.skip' test -DargLine="-Xmx8G "
4141
4242 - name : VS Code tests
4343 working-directory : ./rascal-vscode-extension
@@ -49,23 +49,23 @@ jobs:
4949 ui-test :
5050 strategy :
5151 matrix :
52- os : [buildjet-4vcpu-ubuntu-2204 , windows-latest, macos-latest]
52+ os : [ubicloud-standard-4 , windows-latest, macos-latest]
5353 fail-fast : true
5454 env :
5555 CODE_VERSION : " 1.90.2"
5656 runs-on : ${{ matrix.os }}
5757 steps :
58- - uses : actions/checkout@v4
58+ - uses : actions/checkout@v6
5959 - name : Assure different pom cache hit
6060 run : echo " " >> rascal-lsp/pom.xml
61- - uses : actions/setup-java@v4
61+ - uses : actions/setup-java@v5
6262 with :
6363 java-version : 11
6464 distribution : ' temurin'
6565 cache : ' maven'
6666
6767 - name : setup node
68- uses : actions/setup-node@v4
68+ uses : actions/setup-node@v6
6969 with :
7070 node-version : 20.x
7171 cache : ' npm'
@@ -84,39 +84,44 @@ jobs:
8484
8585 - name : Cache vscode downloads
8686 id : cache-vscode
87- uses : actions/cache@v4
87+ uses : actions/cache@v5
8888 with :
8989 path : ./rascal-vscode-extension/uitests
9090 key : " vscode-${{matrix.os}}"
9191
9292 - name : " UI test (windows)"
93- if : matrix.os == 'windows-latest'
93+ if : contains( matrix.os, 'windows')
9494 working-directory : ./rascal-vscode-extension
9595 env :
9696 DELAY_FACTOR : 10
97+ RASCAL_LSP_DEV_DEPLOY : true
9798 _JAVA_OPTIONS : ' -Xmx5G'
9899 run : npx extest setup-and-run out/test/vscode-suite/*.test.js --storage uitests
99100
100101 - name : " UI test (mac)"
101102 shell : bash
102- if : matrix.os == 'macos-latest'
103+ if : contains( matrix.os, 'macos')
103104 working-directory : ./rascal-vscode-extension
104105 env :
105106 DELAY_FACTOR : 15
107+ RASCAL_LSP_DEV_DEPLOY : true
106108 _JAVA_OPTIONS : ' -Xmx5G'
107109 run : npx extest setup-and-run out/test/vscode-suite/*.test.js --storage uitests
108110
109111 - name : " UI test (ubuntu)"
110112 shell : bash
111- if : matrix.os == 'buildjet-4vcpu-ubuntu-2204'
113+ if : contains( matrix.os, 'ubuntu') || startsWith(matrix.os, 'ubicloud-standard')
112114 working-directory : ./rascal-vscode-extension
113115 env :
114116 DELAY_FACTOR : 8
117+ RASCAL_LSP_DEV_DEPLOY : true
115118 _JAVA_OPTIONS : ' -Xmx5G' # we have 16gb of memory, make sure LSP, REPL & DSL-LSP can start
116- run : xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npx extest setup-and-run out/test/vscode-suite/*.test.js --storage uitests
119+ run : |
120+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 # workaround for issue with Ubuntu 24.04 https://github.com/redhat-developer/vscode-extension-tester/blob/main/KNOWN_ISSUES.md#openresources-not-working-with-apparmor-2404
121+ xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npx extest setup-and-run out/test/vscode-suite/*.test.js --storage uitests
117122
118123 - name : Upload Screenshots
119- uses : actions/upload-artifact@v4
124+ uses : actions/upload-artifact@v7
120125 if : failure()
121126 with :
122127 name : screenshots-${{ matrix.os }}
@@ -132,17 +137,22 @@ jobs:
132137
133138 build :
134139 needs : [ui-test, normal-tests]
135- runs-on : buildjet-2vcpu-ubuntu-2204
140+ environment : ${{ startsWith(github.ref, 'refs/tags/v') && 'deployments' || '' }}
141+ permissions :
142+ id-token : write # only used for npm publishing
143+ actions : read # we need to copy this sadly
144+ contents : write
145+ runs-on : ${{ startsWith(github.ref, 'refs/tags/v') && 'ubuntu-latest' || 'ubicloud-standard-2' }}
136146 steps :
137- - uses : actions/checkout@v4
138- - uses : actions/setup-java@v4
147+ - uses : actions/checkout@v6
148+ - uses : actions/setup-java@v5
139149 with :
140150 java-version : 11
141151 distribution : ' temurin'
142152 cache : ' maven'
143153
144154 - name : setup node
145- uses : actions/setup-node@v4
155+ uses : actions/setup-node@v6
146156 with :
147157 node-version : 20.x
148158 cache : ' npm'
@@ -178,14 +188,15 @@ jobs:
178188 npx vsce package
179189
180190 - name : upload final vsix
181- uses : actions/upload-artifact@v4
191+ uses : actions/upload-artifact@v7
182192 with :
183193 path : rascal-vscode-extension/*.vsix
184194 retention-days : 20
195+ archive : false
185196
186197 - name : Publish release to Open VSX Registry
187198 if : startsWith(github.ref, 'refs/tags/v')
188- uses : HaaLeo/publish-vscode-extension@v1
199+ uses : HaaLeo/publish-vscode-extension@v2
189200 continue-on-error : true
190201 id : publishToOpenVSX
191202 with :
@@ -195,15 +206,15 @@ jobs:
195206
196207 - name : Publish release to Visual Studio Marketplace
197208 if : startsWith(github.ref, 'refs/tags/v')
198- uses : HaaLeo/publish-vscode-extension@v1
209+ uses : HaaLeo/publish-vscode-extension@v2
199210 with :
200211 packagePath : ./rascal-vscode-extension
201212 pat : ${{ secrets.AZURE_USETHESOURCE_PAT }}
202213 registryUrl : https://marketplace.visualstudio.com
203214 extensionFile : ${{ steps.publishToOpenVSX.outputs.vsixPath }} # copy exact same vsix from the previous step
204215
205216 - name : Prepare Draft Release
206- uses : softprops/action-gh-release@v1
217+ uses : softprops/action-gh-release@v2
207218 continue-on-error : true
208219 if : startsWith(github.ref, 'refs/tags/v')
209220 with :
@@ -229,6 +240,6 @@ jobs:
229240 - name : publish to NPM
230241 if : startsWith(github.ref, 'refs/tags/v')
231242 working-directory : rascal-vscode-extension
232- env :
233- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
234- run : npm publish --access=public
243+ run : |
244+ npm install -g npm@11.x # we need to use a newer version of npm due to oidc support
245+ npm publish --provenance --access=public
0 commit comments