Skip to content

Commit

Permalink
Build with proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed Oct 29, 2022
1 parent cc37306 commit 33411c3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,38 @@ jobs:
exit 1
fi
build_proxy:
name: Build with proxy
runs-on: ubuntu-latest
services:
squid:
image: ubuntu/squid:5.2-22.04_beta
ports:
- 3128:3128
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: "https://registry.npmjs.org"
- run: |
node --version
npm --version
export http_proxy=http://localhost:3128 https_proxy=http://localhost:3128
npm ci
name: Install npm dependencies
- run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y libnss3
name: Install OS dependencies
- run: ./test-driver.sh
name: Verify install

publish:
name: Publish to npm
runs-on: ubuntu-latest
needs: [build, build_arm64]
needs: [build, build_arm64, build_proxy]
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 33411c3

Please sign in to comment.