Skip to content

Commit 0420cf0

Browse files
Merge pull request #37 from dschwartznyc/main
refactor workflows to change release process, improve reuse and add synchronization groups
2 parents 523db63 + 2a740d3 commit 0420cf0

16 files changed

+268
-273
lines changed

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

Lines changed: 0 additions & 31 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: ${{ github.workflow }}-${{ 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/release-core.yml

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

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

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

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

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

0 commit comments

Comments
 (0)