Skip to content

Commit 7d6259d

Browse files
committed
♻️ rework github actions for world peace
1 parent fecf2e2 commit 7d6259d

File tree

12 files changed

+61
-73
lines changed

12 files changed

+61
-73
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Tests
22

33
on:
4-
- push
4+
workflow_call:
55

66
jobs:
77
build:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Check Style
22

33
on:
4-
- push
4+
workflow_call:
55

66
jobs:
77
check-style:
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
name: "CodeQL"
1313

1414
on:
15-
push:
16-
branches: [ "main" ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "main" ]
15+
workflow_call:
2016
schedule:
2117
- cron: '33 17 * * 1'
2218

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Publish Documentation
22

33
on:
4-
release:
5-
types: [ published ]
6-
7-
# Allows running this workflow manually from the Actions tab
4+
workflow_call:
85
workflow_dispatch:
96

107
jobs:
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Integration Tests
22

33
on:
4-
pull_request:
5-
schedule:
6-
- cron: '0 23 * * *'
4+
workflow_call:
75
workflow_dispatch:
86
jobs:
97
integration_tests:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Publish package to the Maven Central Repository
22

33
on:
4-
release:
5-
types: [ published ]
6-
7-
# Allows running this workflow manually from the Actions tab
4+
workflow_call:
85
workflow_dispatch:
96

107
jobs:
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Sync `documentation` directory to ReadMe
22

3-
# Run workflow for every push to the `main` branch
43
on:
5-
release:
6-
branches:
7-
- main
4+
workflow_call:
85
workflow_dispatch:
96

107
jobs:
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Test Samples Java Classes
22
on:
3-
pull_request:
4-
schedule:
5-
- cron: '0 23 * * *'
6-
7-
# Allows to run this workflow manually from the Actions tab
3+
workflow_call:
84
workflow_dispatch:
95

106
jobs:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Tag Version
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
docs-publish:
9+
uses: mindee/mindee-api-java/.github/workflows/_docs.yml@main
10+
maven-publish:
11+
uses: mindee/mindee-api-java/.github/workflows/_maven-publish.yml@main

.github/workflows/pull-request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Tag Version
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
checkstyle:
8+
uses: mindee/mindee-api-java/.github/workflows/_checkstyle.yml
9+
build:
10+
uses: mindee/mindee-api-java/.github/workflows/_build.yml
11+
needs: checkstyle
12+
codeql:
13+
uses: mindee/mindee-api-java/.github/workflows/_codeql.yml
14+
needs: build
15+
integration_tests:
16+
uses: mindee/mindee-api-java/.github/workflows/_integration-tests.yml
17+
needs: build
18+
test_code_samples:
19+
uses: mindee/mindee-api-java/.github/workflows/_test-code-samples.yml
20+
needs: build

0 commit comments

Comments
 (0)