Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80e08ff

Browse files
committedDec 13, 2024·
Fix downloading vscode
1 parent b308857 commit 80e08ff

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
 

‎docker/sandbox.sb

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252

5353
(allow mach-lookup)
5454
(allow mach-register)
55+
(allow sysctl-read)
56+
(allow ipc-posix-shm-read-data (literal "apple.shm.notification_center"))
5557

5658
; Write
5759
(allow file-write*
@@ -76,6 +78,7 @@
7678
(allow system-socket)
7779
(allow network-outbound
7880
(path "/private/var/run/mDNSResponder")
81+
(remote tcp4 "*:80")
7982
(remote tcp4 "*:443")
8083
(remote tcp4 "*:3128")
8184
)
@@ -99,6 +102,3 @@
99102

100103
; JSON language server
101104
(allow signal)
102-
103-
; Uncomment when connected to Ottawa office network
104-
(system-network)

‎docker/test-macos.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,13 @@ npm ci -ignore-script node-pty
7474
npm run lint
7575
npm run format
7676
npm run package
77-
FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"
77+
78+
# Download vscode
79+
mkdir -p .vscode-test
80+
curl -O -L "https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal"
81+
unzip download -d .vscode-test
82+
rm download
83+
84+
# export npm_config_proxy="$HTTPS_PROXY"
85+
export npm_config_https_proxy="$HTTPS_PROXY"
86+
VSCODE_INSTALL="$(pwd)/.vscode-test/Visual Studio Code.app" CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"

0 commit comments

Comments
 (0)
Please sign in to comment.