Skip to content

Commit b2aabc1

Browse files
authored
Introduce http feature for http crate types (#477)
* http 1.1 * http feature flag * Fetcher http flag * Implement todos * Implement redirect / ws / abort signal * Add http tests to CI * Add Cf context to http::Request * Fix test working directories * Axum example * fix clippy in CI * Handle generic http_body return type * Documentation * Remove unwraps * Tweak introduction version in docs * Final touches
1 parent cfaabb5 commit b2aabc1

36 files changed

+1119
-700
lines changed

.github/workflows/pullrequest.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
run: cargo fmt --all -- --check
2121

2222
- name: Check for idiomatic code
23-
run: cargo clippy --all-features --all-targets --all -- -D warnings
23+
run: cargo clippy --features d1,queue --all-targets --workspace -- -D warnings
24+
25+
- name: Check for idiomatic code (http)
26+
run: cargo clippy --all-features --package worker-sandbox --all-targets -- -D warnings
2427
test:
2528
name: Test
2629
runs-on: ubuntu-latest
@@ -70,12 +73,10 @@ jobs:
7073
shell: bash
7174
run: npm ci
7275

73-
- name: Build worker
74-
shell: bash
75-
working-directory: ./worker-sandbox
76-
run: NO_MINIFY=1 worker-build --dev
77-
7876
- name: Run tests
7977
shell: bash
80-
working-directory: ./worker-sandbox
81-
run: NODE_OPTIONS=--experimental-vm-modules npx vitest run
78+
run: npm run test
79+
80+
- name: Run tests (http)
81+
shell: bash
82+
run: npm run test-http

0 commit comments

Comments
 (0)