Migrate to AxonFramework v5 #449
Workflow file for this run
This file contains hidden or 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: AxonFramework Code Graph Analysis (Java) | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| paths-ignore: &ignore_paths | ||
| - 'analysis-results/**' | ||
| - 'documentation/**' | ||
| - '**/*.md' | ||
| - '**/*.txt' | ||
| - '**/*.css' | ||
| - '**/*.html' | ||
| - '**/*.js' | ||
| - '.gitignore' | ||
| - '.gitattributes' | ||
| - 'renovate.json' | ||
| - '**.code-workspace' | ||
| - '.github/workflows/typescript-code-analysis.yml' | ||
| - '.github/workflows/*documentation.yml' | ||
| pull_request: | ||
| branches: [ main ] | ||
| paths-ignore: *ignore_paths | ||
| jobs: | ||
| analyze-code-graph: | ||
| name: Analyze Code Graph | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| PROJECT_NAME: AxonFramework | ||
| # Version variable names matches renovate.json configuration entry | ||
| AXON_FRAMEWORK_VERSION: 5.0.0 | ||
| # Java is in this example only used to download JARs for analysis using Maven | ||
| JAVA_VERSION: 25 | ||
| outputs: | ||
| project-name: ${{ env.PROJECT_NAME }} | ||
| project-version: ${{ env.AXON_FRAMEWORK_VERSION }} | ||
| analysis-name: ${{ steps.set-analysis-name.outputs.analysis-name }} | ||
| uploaded-analysis-results: ${{ steps.analyze-code-graph-step.outputs.uploaded-analysis-results }} | ||
| steps: | ||
| - name: (Analyze Code Graph) Set analysis-name | ||
| id: set-analysis-name | ||
| run: echo "analysis-name=${{ env.PROJECT_NAME }}-${{ env.AXON_FRAMEWORK_VERSION }}" >> "$GITHUB_OUTPUT" | ||
| - name: (Analyze Code Graph) Analyze Code Graph | ||
| id: analyze-code-graph-step | ||
| uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml@v3.1.0 | ||
| with: | ||
| analysis-name: ${{ steps.set-analysis-name.outputs.analysis-name }} | ||
| maven-artifacts: > | ||
| org.axonframework:axon-eventsourcing:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-messaging:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-modelling:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-test:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-server-connector:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-common:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-update:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework:axon-conversion:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework.extensions.spring:axon-spring-boot-autoconfigure:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework.extensions.tracing:axon-tracing-opentelemetry:${{ env.AXON_FRAMEWORK_VERSION }}, | ||
| org.axonframework.extensions.metrics:axon-metrics-micrometer:${{ env.AXON_FRAMEWORK_VERSION }} | ||
| source-repository: https://github.com/AxonFramework/AxonFramework.git | ||
| source-repository-branch: axon-${{ env.AXON_FRAMEWORK_VERSION }} | ||
| source-repository-history-only: true # source code is not needed | ||
| ref: v3.1.0 | ||
| commit-analysis-results: | ||
| name: Commit Analysis Results | ||
| needs: [analyze-code-graph] | ||
| uses: ./.github/workflows/internal-commit-results.yml | ||
| with: | ||
| commit-author-name: "${{ github.event.repository.name }} Continuous Integration" | ||
| commit-author-email: "7671054+JohT@users.noreply.github.com" | ||
| commit-message: "Automated code structure analysis results (CI)" | ||
| commit-directory: "analysis-results/${{ needs.analyze-code-graph.outputs.project-name }}/${{ needs.analyze-code-graph.outputs.analysis-name }}" | ||
| second-commit-directory: "analysis-results/${{ needs.analyze-code-graph.outputs.project-name }}/latest" | ||
| uploaded-artifact-name: ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }} | ||
| secrets: | ||
| repository-commit-token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }} | ||