chore: cleanup and refactor ci into reusable jobs (#614) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | ||
"on": | ||
merge_group: {} | ||
push: | ||
branches: | ||
- stable | ||
- main | ||
permissions: | ||
contents: read | ||
concurrency: | ||
group: "push-${{ github.ref }}" | ||
jobs: | ||
## | ||
## Job: Multi-platform Build | ||
## | ||
build: | ||
name: "Build" | ||
uses: ./.github/workflows/job.build.yml | ||
secrets: inherit | ||
permissions: | ||
actions: "read" | ||
contents: "write" | ||
id-token: "write" | ||
checks: "write" | ||
packages: "write" | ||
pull-requests: "write" | ||
deployments: "write" | ||
statuses: "write" | ||
security-events: "write" | ||
with: | ||
tests: true | ||
provenance: true | ||
## | ||
## Job: Checks for Models | ||
## | ||
publish-model: | ||
name: "Publish" | ||
uses: ./.github/workflows/job.deploy-model.yml | ||
secrets: | ||
BUF_TOKEN: ${{ secrets.BUF_TOKEN }} | ||
permissions: | ||
contents: "read" | ||
## | ||
## Job: Check for Wrapper | ||
## | ||
check-wrapper: | ||
name: "Checks" | ||
uses: ./.github/workflows/checks.gradle-wrapper.yml | ||
permissions: | ||
contents: "read" | ||
## | ||
## Job: Checks with Sonar | ||
## | ||
check-sonar: | ||
name: "Checks" | ||
uses: ./.github/workflows/checks.sonar.yml | ||
needs: [build] | ||
secrets: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }} | ||
permissions: | ||
contents: "read" | ||
## | ||
## Job: Checks with CodeQL | ||
## | ||
check-codeql: | ||
name: "Checks" | ||
uses: ./.github/workflows/checks.codeql.yml | ||
needs: [build] | ||
secrets: | ||
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }} | ||
permissions: | ||
actions: "read" | ||
contents: "read" | ||
security-events: "write" | ||
## | ||
## Job: Checks with Qodana | ||
## | ||
check-qodana: | ||
name: "Checks" | ||
uses: ./.github/workflows/checks.qodana.yml | ||
needs: [build] | ||
secrets: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }} | ||
permissions: | ||
contents: "read" |