Skip to content

Commit b92ac15

Browse files
authored
♻️ rework github actions for world peace (#217)
1 parent fecf2e2 commit b92ac15

File tree

13 files changed

+86
-79
lines changed

13 files changed

+86
-79
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: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@
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" ]
20-
schedule:
21-
- cron: '33 17 * * 1'
15+
workflow_call:
16+
workflow_dispatch:
2217

2318
jobs:
2419
analyze:
@@ -69,6 +64,6 @@ jobs:
6964
# ./location_of_script_within_repo/buildscript.sh
7065

7166
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
67+
uses: github/codeql-action/analyze@v3
7368
with:
7469
category: "/language:${{matrix.language}}"
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Integration Tests
22

33
on:
4-
pull_request:
5-
schedule:
6-
- cron: '0 23 * * *'
4+
workflow_call:
75
workflow_dispatch:
6+
87
jobs:
98
integration_tests:
109
name: Run Integration Tests
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
name: Publish package to the Maven Central Repository
1+
name: Publish to Maven Central
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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
name: Sync `documentation` directory to ReadMe
1+
name: Sync documentation 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: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
name: Test Samples Java Classes
1+
name: Test Code Samples
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:

.github/workflows/cron.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Crontab
2+
3+
on:
4+
schedule:
5+
- cron: '33 0 * * *'
6+
7+
jobs:
8+
codeql:
9+
uses: mindee/mindee-api-java/.github/workflows/_codeql.yml@main
10+
test_code_samples:
11+
uses: mindee/mindee-api-java/.github/workflows/_test-code-samples.yml@main
12+
secrets: inherit
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish Release
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+
secrets: inherit
11+
maven-publish:
12+
uses: mindee/mindee-api-java/.github/workflows/_maven-publish.yml@main
13+
secrets: inherit

0 commit comments

Comments
 (0)