Skip to content

Commit

Permalink
Merge pull request #46 from dakale/http-proxy-support
Browse files Browse the repository at this point in the history
http proxy support
  • Loading branch information
Konrad Pabjan authored and GitHub committed Feb 11, 2020
2 parents 63d6860 + ec103c0 commit 623089a
Show file tree
Hide file tree
Showing 5 changed files with 4,042 additions and 4,043 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,34 @@ jobs:

- name: npm test
run: npm test
run-with-proxy:
name: Run with proxy
runs-on: ubuntu-latest
services:
squid:
image: dakale/squid
ports: ['3128:3128']
options: '--health-cmd "exit 0" --health-interval 3s'
env:
http_proxy: http://localhost:3128
https_proxy: http://localhost:3128
steps:
- name: Block non proxied traffic
run: |
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
- name: Checkout
uses: actions/checkout@master

- name: Set Node.js 10.x
uses: actions/setup-node@master
with:
node-version: 10.x

- name: npm install
run: npm install

- name: Lint
run: npm run format-check

- name: npm test
run: npm test
Loading

0 comments on commit 623089a

Please sign in to comment.