Skip to content

Commit 6a4bae2

Browse files
committed
feat(trogon-source-linear): add Linear webhook receiver that sinks events to NATS JetStream
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 19aea84 commit 6a4bae2

16 files changed

Lines changed: 4680 additions & 42 deletions

File tree

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

0 commit comments

Comments
 (0)