File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments