Skip to content

Pin JohT/code-graph-analysis-pipeline action to 4ebeb39 #466

Pin JohT/code-graph-analysis-pipeline action to 4ebeb39

Pin JohT/code-graph-analysis-pipeline action to 4ebeb39 #466

name: AxonFramework Code Graph Analysis (Java)
on:
push:
branches:
- main
# Ignore changes in documentation, general configuration and analysis-results for push events
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:
prepare-code-to-analyze:
name: Prepare Code to Analyze
runs-on: ubuntu-latest
env:
PROJECT_NAME: AxonFramework
# Version variable names matches renovate.json configuration entry
AXON_FRAMEWORK_VERSION: 5.0.0
outputs:
project-name: ${{ env.PROJECT_NAME }}
project-version: ${{ env.AXON_FRAMEWORK_VERSION }}
analysis-name: ${{ steps.set-analysis-name.outputs.analysis-name }}
steps:
- name: (Prepare Code to Analyze) Set analysis-name
id: set-analysis-name
run: echo "analysis-name=${{ env.PROJECT_NAME }}-${{ env.AXON_FRAMEWORK_VERSION }}" >> "$GITHUB_OUTPUT"
analyze-code-graph:
name: Analyze Code Graph
needs: [prepare-code-to-analyze]
uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml@4ebeb39f9c7480bf629b97053e140999050cf768 # v3.1.1
with:
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
maven-artifacts: >
org.axonframework:axon-eventsourcing:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-messaging:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-modelling:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-test:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-server-connector:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-common:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-update:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework:axon-conversion:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework.extensions.spring:axon-spring-boot-autoconfigure:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework.extensions.tracing:axon-tracing-opentelemetry:${{ needs.prepare-code-to-analyze.outputs.project-version }},
org.axonframework.extensions.metrics:axon-metrics-micrometer:${{ needs.prepare-code-to-analyze.outputs.project-version }}
source-repository: https://github.com/AxonFramework/AxonFramework.git
source-repository-branch: axon-${{ needs.prepare-code-to-analyze.outputs.project-version }}
source-repository-history-only: true
ref: v3.1.1
commit-analysis-results:
name: Commit Analysis Results
needs: [prepare-code-to-analyze, 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.prepare-code-to-analyze.outputs.project-name }}/${{ needs.prepare-code-to-analyze.outputs.analysis-name }}"
second-commit-directory: "analysis-results/${{ needs.prepare-code-to-analyze.outputs.project-name }}/latest"
uploaded-artifact-name: ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}
secrets:
repository-commit-token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}