-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (60 loc) · 1.81 KB
/
Copy pathci.yml
File metadata and controls
75 lines (60 loc) · 1.81 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
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Java CI
on:
pull_request:
branches:
- main
# A workflow added by a pull request is not loaded from the base branch for
# that pull_request event. Running the workflow from ark-hand's same-repo
# sync branch makes the first workflow-installation PR testable as well.
push:
branches:
- "sync/**"
paths:
- ".github/workflows/ci.yml"
permissions:
contents: read
concurrency:
group: java-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
java-ci:
name: Java CI
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "8"
cache: maven
- name: Compile
run: mvn -B compile
- name: Package
run: mvn -B package -DskipTests
- name: Test core
run: mvn -B test
mcp-ci:
name: MCP adapter CI
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: maven
- name: Install matching core artifact
run: |
adapter_version="$(mvn -q -f mcp/pom.xml help:evaluate -Dexpression=project.version -DforceStdout)"
mvn -B versions:set -DnewVersion="${adapter_version}" -DgenerateBackupPoms=false
mvn -B install -DskipTests
- name: Test and install optional MCP adapter
run: mvn -B -f mcp/pom.xml install
- name: Compile self-hosted MCP example
run: mvn -B -f examples/self_hosted_mcp_worker/pom.xml package