Skip to content

Commit 623089a

Browse files
authored
Merge pull request #46 from dakale/http-proxy-support
http proxy support
2 parents 63d6860 + ec103c0 commit 623089a

5 files changed

Lines changed: 4042 additions & 4043 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,34 @@ jobs:
2424

2525
- name: npm test
2626
run: npm test
27+
run-with-proxy:
28+
name: Run with proxy
29+
runs-on: ubuntu-latest
30+
services:
31+
squid:
32+
image: dakale/squid
33+
ports: ['3128:3128']
34+
options: '--health-cmd "exit 0" --health-interval 3s'
35+
env:
36+
http_proxy: http://localhost:3128
37+
https_proxy: http://localhost:3128
38+
steps:
39+
- name: Block non proxied traffic
40+
run: |
41+
echo "127.0.0.0 registry.npm.js nodejs.org github.com api.github.com download.java.net static.azul.com" | sudo tee -a /etc/hosts
42+
- name: Checkout
43+
uses: actions/checkout@master
44+
45+
- name: Set Node.js 10.x
46+
uses: actions/setup-node@master
47+
with:
48+
node-version: 10.x
49+
50+
- name: npm install
51+
run: npm install
52+
53+
- name: Lint
54+
run: npm run format-check
55+
56+
- name: npm test
57+
run: npm test

0 commit comments

Comments
 (0)