Skip to content

Commit 06c8f3d

Browse files
committed
Fix downloading vscode
1 parent b308857 commit 06c8f3d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-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

+7-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,10 @@ 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+
curl -S -L "https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal" | tar -xz - -C .vscode-test
80+
81+
export npm_config_proxy="localhost:3128"
82+
export npm_config_https_proxy="localhost:3128"
83+
CI=0 FAST_TEST_RUN=1 npm run coverage -- --coverage-output "$PWD/coverage"

0 commit comments

Comments
 (0)