Skip to content

Commit 6bbc1a2

Browse files
committed
feat(trogon-github): GitHub webhook receiver → NATS JetStream
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 84355c0 commit 6bbc1a2

96 files changed

Lines changed: 4822 additions & 2644 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.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI — github branch
2+
3+
on:
4+
push:
5+
branches: [github]
6+
pull_request:
7+
branches: [github]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
unit-tests:
14+
name: Lint + Unit tests
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
defaults:
18+
run:
19+
working-directory: rsworkspace
20+
21+
steps:
22+
- uses: actions/checkout@v4.3.1
23+
24+
- name: Install Rust components
25+
run: rustup component add rustfmt clippy
26+
27+
- name: Cache dependencies
28+
uses: Swatinem/rust-cache@v2.8.2
29+
with:
30+
workspaces: rsworkspace -> target
31+
32+
- name: Check formatting
33+
run: cargo fmt --all -- --check
34+
35+
- name: Clippy
36+
run: cargo clippy --all-targets --all-features
37+
38+
- name: Unit tests
39+
run: cargo test --workspace --lib
40+
41+
integration-tests:
42+
name: Integration tests (Docker)
43+
runs-on: ubuntu-latest
44+
timeout-minutes: 20
45+
defaults:
46+
run:
47+
working-directory: rsworkspace
48+
49+
steps:
50+
- uses: actions/checkout@v4.3.1
51+
52+
- name: Cache dependencies
53+
uses: Swatinem/rust-cache@v2.8.2
54+
with:
55+
workspaces: rsworkspace -> target
56+
57+
- name: Integration — trogon-nats
58+
run: cargo test -p trogon-nats --test nats_integration
59+
60+
- name: Integration — acp-nats (Bridge)
61+
run: cargo test -p acp-nats --test bridge_integration
62+
63+
- name: Integration — trogon-github (webhook e2e)
64+
run: cargo test -p trogon-github --test webhook_e2e

rsworkspace/.dockerignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Rust build artifacts — largest offender, can be many GBs
2+
target/
3+
4+
# Dev tooling
5+
.git/
6+
.github/
7+
.cargo/
8+
9+
# Test/CI artifacts
10+
lcov.info
11+
coverage.xml
12+
*.profraw
13+
*.profdata
14+
mutants.out*/
15+
16+
# IDE / OS
17+
.idea/
18+
.vscode/
19+
.DS_Store
20+
Thumbs.db
21+
*.swp
22+
*.swo
23+
24+
# Environment files with secrets
25+
.env
26+
.env.*
27+
!.env.example

0 commit comments

Comments
 (0)