| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 63d6860 commit 90c448a
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,3 +24,39 @@ jobs: | |||
| 24 | 24 | ||
| 25 | 25 | - name: npm test | |
| 26 | 26 | 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments