[ARCTIC-1737] 0.3.x fix the tasks of ScheduledExecutorService that ha… #1145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: AMS CI with Maven | |
# triggered on push pr, only ams module is modified | |
on: | |
push: | |
branches: | |
- "master" | |
- "0.**" | |
paths: | |
- "!core/**" | |
- "!hive/**" | |
- "!ams/api/**" | |
- "ams/ams-server/**" | |
- "optimizer/**" | |
pull_request: | |
branches: | |
- "master" | |
- "0.**" | |
paths: | |
- "!core/**" | |
- "!hive/**" | |
- "!ams/**" | |
- "ams/ams-server/**" | |
- "optimizer/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: Get changed file | |
id: changed-files | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
ams_server: | |
- 'ams/ams-server/**' | |
optimizer: | |
- 'optimizer/**' | |
- name: test for ams server | |
if: steps.changed-files.outputs.ams_server == 'true' | |
run: mvn install -pl 'ams/ams-server' -am -e | |
- name: test for optimizer | |
if: steps.changed-files.outputs.optimizer == 'true' | |
run: mvn install -pl 'optimizer' -am -e |