Skip to content

Commit

Permalink
♻️ rework github actions for world peace
Browse files Browse the repository at this point in the history
  • Loading branch information
ianardee committed Dec 27, 2024
1 parent fecf2e2 commit 7d6259d
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests

on:
- push
workflow_call:

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check Style

on:
- push
workflow_call:

jobs:
check-style:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
workflow_call:
schedule:
- cron: '33 17 * * 1'

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/docs.yml → .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Publish Documentation

on:
release:
types: [ published ]

# Allows running this workflow manually from the Actions tab
workflow_call:
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Integration Tests

on:
pull_request:
schedule:
- cron: '0 23 * * *'
workflow_call:
workflow_dispatch:
jobs:
integration_tests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Publish package to the Maven Central Repository

on:
release:
types: [ published ]

# Allows running this workflow manually from the Actions tab
workflow_call:
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Sync `documentation` directory to ReadMe

# Run workflow for every push to the `main` branch
on:
release:
branches:
- main
workflow_call:
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Test Samples Java Classes
on:
pull_request:
schedule:
- cron: '0 23 * * *'

# Allows to run this workflow manually from the Actions tab
workflow_call:
workflow_dispatch:

jobs:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Tag Version

on:
release:
types: [ published ]

jobs:
docs-publish:
uses: mindee/mindee-api-java/.github/workflows/_docs.yml@main
maven-publish:
uses: mindee/mindee-api-java/.github/workflows/_maven-publish.yml@main
20 changes: 20 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Tag Version

on:
pull_request:

jobs:
checkstyle:
uses: mindee/mindee-api-java/.github/workflows/_checkstyle.yml
build:
uses: mindee/mindee-api-java/.github/workflows/_build.yml
needs: checkstyle
codeql:
uses: mindee/mindee-api-java/.github/workflows/_codeql.yml
needs: build
integration_tests:
uses: mindee/mindee-api-java/.github/workflows/_integration-tests.yml
needs: build
test_code_samples:
uses: mindee/mindee-api-java/.github/workflows/_test-code-samples.yml
needs: build
22 changes: 22 additions & 0 deletions .github/workflows/tag-main-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tag Version

on:
push:
branches:
- main

jobs:
checkstyle:
uses: mindee/mindee-api-java/.github/workflows/_checkstyle.yml@main
build:
uses: mindee/mindee-api-java/.github/workflows/_build.yml@main
needs: checkstyle
codeql:
uses: mindee/mindee-api-java/.github/workflows/codeql.yml@main
needs: build
sync-readme:
uses: mindee/mindee-api-java/.github/workflows/_sync-md.yml@main
needs: build
tag:
uses: mindee/client-lib-actions/.github/workflows/tag-version.yml@main
needs: codeql
46 changes: 0 additions & 46 deletions .github/workflows/tag-version.yml

This file was deleted.

0 comments on commit 7d6259d

Please sign in to comment.