Skip to content

Commit 377a415

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/wretch-3.0.7
2 parents 952299f + 291a5d4 commit 377a415

4 files changed

Lines changed: 50 additions & 5 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Integration tests against a real proxy (PROXY_URL). Add repository secret PROXY_URL
2+
# under Settings → Secrets and variables → Actions, then mark this workflow as a required
3+
# status check under branch protection (pull_request events only receive secrets for PRs
4+
# from the same repository, not from forks).
5+
6+
name: Proxy integration tests
7+
8+
on:
9+
pull_request:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
integration:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "22"
27+
cache: npm
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Require PROXY_URL Actions secret
33+
env:
34+
PROXY_URL: ${{ secrets.PROXY_URL }}
35+
run: |
36+
if [ -z "${PROXY_URL}" ]; then
37+
echo "::error::PROXY_URL is not set. Add a repository (or environment) secret named PROXY_URL under Settings → Secrets and variables → Actions."
38+
exit 1
39+
fi
40+
41+
- name: Run integration tests
42+
env:
43+
PROXY_URL: ${{ secrets.PROXY_URL }}
44+
run: npm test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![npm version](https://badge.fury.io/js/javascript-proxy-headers.svg)](https://badge.fury.io/js/javascript-proxy-headers)
12
# JavaScript Proxy Headers
23

34
Extensions for JavaScript HTTP libraries to support **sending and receiving custom proxy headers** during HTTPS CONNECT tunneling.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"node-fetch": "^3.3.0",
161161
"superagent": "^10.1.0",
162162
"tsx": "^4.21.0",
163-
"typescript": "^5.9.3",
163+
"typescript": "^6.0.2",
164164
"undici": "^7.2.0",
165165
"ky": "^1.7.0",
166166
"wretch": "^3.0.7",

0 commit comments

Comments
 (0)