Skip to content

Commit 12b79c8

Browse files
committed
workflow
1 parent deca8d7 commit 12b79c8

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/components.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Workspace Components (jacs-mcp, jacsgo)
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
paths:
7+
- "jacs-mcp/**"
8+
- "jacsgo/**"
9+
- "jacs/**"
10+
- "binding-core/**"
11+
- "Cargo.toml"
12+
- "Cargo.lock"
13+
- ".github/workflows/components.yml"
14+
pull_request:
15+
branches: ["master"]
16+
paths:
17+
- "jacs-mcp/**"
18+
- "jacsgo/**"
19+
- "jacs/**"
20+
- "binding-core/**"
21+
- "Cargo.toml"
22+
- "Cargo.lock"
23+
- ".github/workflows/components.yml"
24+
workflow_dispatch:
25+
26+
env:
27+
CARGO_TERM_COLOR: always
28+
29+
jobs:
30+
test-jacs-mcp:
31+
name: Test jacs-mcp
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Install Rust toolchain
39+
uses: dtolnay/rust-toolchain@stable
40+
with:
41+
toolchain: "1.93"
42+
43+
- name: Run jacs-mcp tests
44+
run: cargo test -p jacs-mcp --verbose
45+
46+
test-jacsgo:
47+
name: Test jacsgo
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Checkout code
52+
uses: actions/checkout@v4
53+
54+
- name: Install Rust toolchain
55+
uses: dtolnay/rust-toolchain@stable
56+
with:
57+
toolchain: "1.93"
58+
59+
- name: Setup Go
60+
uses: actions/setup-go@v5
61+
with:
62+
go-version: "1.21"
63+
64+
- name: Run jacsgo tests
65+
working-directory: jacsgo
66+
run: GOCACHE=/tmp/jacs-go-cache make test
67+
68+
- name: Build jacsgo examples
69+
working-directory: jacsgo
70+
run: GOCACHE=/tmp/jacs-go-cache make examples

0 commit comments

Comments
 (0)