-
Notifications
You must be signed in to change notification settings - Fork 1.7k
49 lines (47 loc) · 1.91 KB
/
ci.yaml
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
# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: fast CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 8, 11, 17, 21, 22 ]
fail-fast: false
max-parallel: 64
name: Fast CI on Java ${{ matrix.java }} OS ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
cache: maven
- name: Build with Maven
run: ./mvnw -V --no-transfer-progress clean package
- name: Run unit test under ttl agent, include check for ExecutorService, ForkJoinPool, Timer/TimerTask
working-directory: ttl2-compatible
run: >
../mvnw -V --no-transfer-progress
-Penable-ttl-agent-for-test
surefire:test
'-Dttl.agent.extra.d.options=-Drun-ttl-test-under-agent-with-enable-timer-task=true'
- name: Run unit test under ttl agent, and turn on the disable inheritable for thread pool enhancement
working-directory: ttl2-compatible
run: >
../mvnw -V --no-transfer-progress
-Penable-ttl-agent-for-test
surefire:test
'-Dttl.agent.extra.args=ttl.agent.disable.inheritable.for.thread.pool:true'
'-Dttl.agent.extra.d.options=-Drun-ttl-test-under-agent-with-disable-inheritable=true'
- name: Run agent check for Timer/TimerTask, explicit "ttl.agent.enable.timer.task"
working-directory: ttl2-compatible
run: >
../mvnw -V --no-transfer-progress
-Penable-ttl-agent-for-test
surefire:test
'-Dttl.agent.extra.args=ttl.agent.enable.timer.task:true'
'-Dttl.agent.extra.d.options=-Drun-ttl-test-under-agent-with-enable-timer-task=true'