Skip to content

Rename ci.yml to build-test.yml #1

Rename ci.yml to build-test.yml

Rename ci.yml to build-test.yml #1

Workflow file for this run

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

Check failure on line 13 in .github/workflows/build-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
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