Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 90c448a

Browse files
author
David Kale
committed
Update packages to support http_proxy
1 parent 63d6860 commit 90c448a

File tree

5 files changed

+4047
-4043
lines changed

5 files changed

+4047
-4043
lines changed

.github/workflows/workflow.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,39 @@ 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
58+
59+
- name: Check proxy logs
60+
run: |
61+
docker cp ${{ job.services.squid.id }}:/var/log/squid/access.log access.log
62+
cat access.log

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy