Rename ci.yml to build-test.yml #1
Workflow file for this run
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: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
release: | ||
types: [published] | ||
jobs: | ||
validate: | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven/build-test.yml@main | ||
secrets: inherit | ||
spotless: | ||
needs: validate | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven/spotless-check.yml@main | ||
# This job publishes snapshots on every push to main | ||
pre-release: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
needs: spotless | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven/publish.yml@main | ||
secrets: inherit | ||
# This job publishes releases on every tag | ||
release: | ||
if: ${{ github.event_name == 'release' }} | ||
needs: spotless | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven/publish.yml@main | ||
secrets: inherit | ||
# this job notifies OCD3 of a new pre-release(snapshots) | ||
notify-ocd3: | ||
needs: pre-release | ||
uses: mekomsolutions/shared-github-workflow/.github/workflows/ocd3/notify.yml@main | ||
secrets: inherit |