Skip to content

build(ci): use GitHub action 🐙 strong_ci.yaml instead of `appveyor.… #791

build(ci): use GitHub action 🐙 strong_ci.yaml instead of `appveyor.…

build(ci): use GitHub action 🐙 strong_ci.yaml instead of `appveyor.… #791

Workflow file for this run

# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: 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, 19, 20, 21-ea ]
fail-fast: false
max-parallel: 64
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
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'