This repository was archived by the owner on Apr 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 1.55 KB
/
Copy pathci.yml
File metadata and controls
62 lines (51 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "--cfg reqwest_unstable"
jobs:
check:
name: Check, Lint, Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt -p webclaw-http -p webclaw-tls-bench --check
- name: Clippy
run: cargo clippy -p webclaw-http -- -W clippy::all
- name: Unit tests
run: cargo test -p webclaw-http --lib
- name: Hermetic tests
run: cargo test -p webclaw-http --test unit
integration:
name: Integration Tests (network)
runs-on: ubuntu-latest
if: github.event_name == 'push'
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Fingerprint tests
run: cargo test -p webclaw-http --test fingerprint
- name: HTTP method tests
run: cargo test -p webclaw-http --test http_methods
sync-downstream:
name: Sync to webclaw core
runs-on: ubuntu-latest
needs: [check]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Trigger core dependency update
run: |
gh api repos/0xMassi/webclaw/dispatches \
-f event_type=tls-updated \
-f client_payload[sha]=${{ github.sha }}
env:
GH_TOKEN: ${{ secrets.SYNC_PAT }}