-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (35 loc) 路 1.18 KB
/
Copy pathjava-agent.yml
File metadata and controls
42 lines (35 loc) 路 1.18 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
name: Java Agent
on:
# Deliberately unfiltered: the Woodpecker pipeline this replaced ran the
# matrix on every pull request regardless of target, and this repo has
# several long-lived integration branches that would otherwise get no CI.
pull_request:
push:
branches: [main]
# Superseded runs are pointless work: a push to a PR branch makes the
# previous run's result irrelevant. Matters more now that the trigger above
# is unfiltered and this repo carries a lot of long-lived branches.
concurrency:
group: java-agent-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: JDK ${{ matrix.java-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ["8", "17", "21"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: maven
- name: Build
run: mvn -B -DskipTests clean verify
- name: Smoke test Java agent
run: ./scripts/smoke-javaagent.sh