Skip to content

Commit 33411c3

Browse files
committed
Build with proxy
1 parent cc37306 commit 33411c3

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,38 @@ jobs:
107107
exit 1
108108
fi
109109
110+
build_proxy:
111+
name: Build with proxy
112+
runs-on: ubuntu-latest
113+
services:
114+
squid:
115+
image: ubuntu/squid:5.2-22.04_beta
116+
ports:
117+
- 3128:3128
118+
steps:
119+
- uses: actions/checkout@v2
120+
- uses: actions/setup-node@v2
121+
with:
122+
node-version: 14.x
123+
registry-url: "https://registry.npmjs.org"
124+
- run: |
125+
node --version
126+
npm --version
127+
export http_proxy=http://localhost:3128 https_proxy=http://localhost:3128
128+
npm ci
129+
name: Install npm dependencies
130+
- run: |
131+
set -euo pipefail
132+
sudo apt-get update
133+
sudo apt-get install -y libnss3
134+
name: Install OS dependencies
135+
- run: ./test-driver.sh
136+
name: Verify install
137+
110138
publish:
111139
name: Publish to npm
112140
runs-on: ubuntu-latest
113-
needs: [build, build_arm64]
141+
needs: [build, build_arm64, build_proxy]
114142
if: success() && startsWith(github.ref, 'refs/tags/')
115143
steps:
116144
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)