Skip to content

Commit b4a7f90

Browse files
update workflows for better reuse
1 parent 78af12b commit b4a7f90

15 files changed

+206
-204
lines changed

.github/workflows/build-and-test-core.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/build-and-test-develop.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/build-and-test-main.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# .github/workflows/build-and-test.yml
2+
3+
name: Core Build and Test
4+
5+
on:
6+
workflow_call:
7+
inputs:
8+
java-version:
9+
required: false
10+
type: string
11+
default: '21'
12+
python-version:
13+
required: false
14+
type: string
15+
default: '3.11'
16+
17+
concurrency:
18+
group: build-and-test-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build-and-test:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
# Java
32+
- name: Set up Java
33+
uses: actions/setup-java@v4
34+
with:
35+
distribution: temurin
36+
java-version: ${{ inputs.java-version }}
37+
cache: maven
38+
39+
- name: Build & Test (Java)
40+
run: mvn -B clean verify
41+
42+
# Python
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: ${{ inputs.python-version }}
47+
cache: pip
48+
49+
- name: Run Python Unit Tests
50+
run: |
51+
chmod +x test/python_setup/setup_python_env.sh
52+
chmod +x test/python_setup/cleanup_python_env.sh
53+
chmod +x test/python_unit_tests/setup_unit_test_env.sh
54+
chmod +x test/python_unit_tests/run_python_unit_tests.sh
55+
test/python_unit_tests/run_python_unit_tests.sh

.github/workflows/ci-develop,yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .github/workflows/ci-develop.yml
2+
3+
name: CI - Develop
4+
5+
on:
6+
push:
7+
branches: [develop]
8+
pull_request:
9+
branches: [develop]
10+
11+
concurrency:
12+
group: ci-develop-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-and-test:
17+
uses: ./.github/workflows/build-and-test.yml
18+
with:
19+
java-version: '21'
20+
python-version: '3.11'

.github/workflows/ci-main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .github/workflows/ci-main.yml
2+
3+
name: CI - Main
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
concurrency:
12+
group: ci-main-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-and-test:
17+
uses: ./.github/workflows/build-and-test.yml
18+
with:
19+
java-version: '21'
20+
python-version: '3.11'

.github/workflows/ci-renovate.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# .github/workflows/ci-renovate.yml
2+
name: CI on Renovate PR
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- develop
8+
- main
9+
paths:
10+
- '**/pom.xml'
11+
- 'requirements*.txt'
12+
13+
jobs:
14+
renovate-ci:
15+
uses: ./.github/workflows/build-and-test.yml

.github/workflows/release-core.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/release-on-dsl-version-change.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/release-on-tag.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)