Skip to content

Commit 220c1e7

Browse files
committed
Smoke Test Results (real API):
7 types PASS: cloudflare_turnstile, recaptcha_v2, v2_enterprise, v2_invisible, v3, v3_enterprise, normal_captcha
1 parent 7c6b555 commit 220c1e7

361 files changed

Lines changed: 213650 additions & 126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,62 @@ jobs:
169169
fi
170170
echo "Kotlin syntax check complete"
171171
172+
lint-csharp:
173+
name: Lint C# examples
174+
runs-on: ubuntu-latest
175+
steps:
176+
- uses: actions/checkout@v4
177+
178+
- uses: actions/setup-dotnet@v4
179+
with:
180+
dotnet-version: "8.0.x"
181+
182+
- name: Check C# syntax
183+
run: |
184+
errors=0
185+
for dir in articles/*/csharp; do
186+
if [ -f "$dir/Solve.cs" ] && [ -f "$dir/Solve.csproj" ]; then
187+
cd "$dir"
188+
if ! dotnet build --nologo -v q 2>&1; then
189+
errors=$((errors + 1))
190+
fi
191+
rm -rf bin obj
192+
cd - > /dev/null
193+
fi
194+
done
195+
if [ $errors -gt 0 ]; then
196+
echo "Found $errors C# compilation errors"
197+
exit 1
198+
fi
199+
echo "All C# examples compile"
200+
201+
lint-rust:
202+
name: Lint Rust examples
203+
runs-on: ubuntu-latest
204+
steps:
205+
- uses: actions/checkout@v4
206+
207+
- uses: dtolnay/rust-toolchain@stable
208+
209+
- name: Check Rust syntax
210+
run: |
211+
errors=0
212+
for dir in articles/*/rust; do
213+
if [ -f "$dir/Cargo.toml" ]; then
214+
cd "$dir"
215+
if ! cargo check --message-format=short 2>&1; then
216+
errors=$((errors + 1))
217+
fi
218+
rm -rf target
219+
cd - > /dev/null
220+
fi
221+
done
222+
if [ $errors -gt 0 ]; then
223+
echo "Found $errors Rust compilation errors"
224+
exit 1
225+
fi
226+
echo "All Rust examples compile"
227+
172228
validate-structure:
173229
name: Validate example pack structure
174230
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)