@@ -17,42 +17,14 @@ concurrency:
1717 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
1818
1919jobs :
20- # Run unit tests before building the application
21-
22- run-unit-tests :
23- name : Run unit tests
24- runs-on : ubuntu-latest
25- steps :
26- # Checkout repository code
27- - name : Checkout code
28- uses : actions/checkout@v4
29-
30- # Verify CSP line exists in target TypeScript file
31- - name : Check CSP configuration in webClientServer.ts
32- run : |
33- TARGET_FILE="patched-vscode/src/vs/server/node/webClientServer.ts"
34- REQUIRED_TEXT="'connect-src \'self\' ws: wss: https://main.vscode-cdn.net http://localhost:* https://localhost:* https://login.microsoftonline.com/ https://update.code.visualstudio.com https://*.vscode-unpkg.net/ https://default.exp-tas.com/vscode/ab https://vscode-sync.trafficmanager.net https://vscode-sync-insiders.trafficmanager.net https://*.gallerycdn.vsassets.io https://marketplace.visualstudio.com https://*.blob.core.windows.net https://az764295.vo.msecnd.net https://code.visualstudio.com https://*.gallery.vsassets.io https://*.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com https://*.servicebus.windows.net/ https://vscode.blob.core.windows.net https://vscode.search.windows.net https://vsmarketplacebadges.dev https://vscode.download.prss.microsoft.com https://download.visualstudio.microsoft.com https://*.vscode-unpkg.net https://open-vsx.org;'"
35-
36- if [ ! -f "$TARGET_FILE" ]; then
37- echo "❌ FAIL: Target file $TARGET_FILE does not exist."
38- exit 1
39- fi
40-
41- if grep -F "$REQUIRED_TEXT" "$TARGET_FILE" > /dev/null; then
42- echo "✅ PASS: Required CSP text exists."
43- else
44- echo "❌ FAIL: Required CSP text NOT found in $TARGET_FILE"
45- exit 1
46- fi
4720
4821
4922
5023 # The main job for building the application
5124 build :
5225 name : Build sagemaker-code-editor
5326 runs-on : ubuntu-latest
54- # Ensure unit tests pass before building
55- needs : run-unit-tests
27+ # Ensure unit tests pass before building
5628 timeout-minutes : 180
5729 env :
5830 # Environment variable to optimize the build process
@@ -160,16 +132,4 @@ jobs:
160132 with :
161133 name : npm-package
162134 path : sagemaker-code-editor-${{ env.VERSION }}.tar.gz
163- # Run end-to-end tests after the build is complete
164- run-e2e-tests :
165- name : Run e2e tests
166- runs-on : ubuntu-latest
167- needs : build # Ensure e2e tests run after build
168- steps :
169- # Checkout repository code
170- - name : Checkout code
171- uses : actions/checkout@v4
172-
173- # Output placeholder message for e2e tests
174- - name : Hudson's test of e2e test
175- run : echo "Hudson's test of e2e test"
135+
0 commit comments