Skip to content

Commit d99dd36

Browse files
authored
Merge pull request #307 from JohT/feature/fix-renaming-issues-and-missing-hidden-files
Fix renaming issues and missing hidden files
2 parents 9d65b74 + bd5675d commit d99dd36

13 files changed

+40
-26
lines changed

.github/workflows/internal-check-links-in-documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'COMMANDS.md'
1111
- 'GETTING_STARTED.md'
1212
- 'INTEGRATION.md'
13-
- '.github/workflows/check-links-in-documentation.yml' # also run when this file was changed
13+
- '.github/workflows/internal-check-links-in-documentation.yml' # also run when this file was changed
1414
schedule:
1515
- cron: "15 6 1 * *" # On the first day of each month at 6:15 o'clock
1616

.github/workflows/internal-check-renovate-config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
# Only watch root level Renovate configuration changes
88
paths:
99
- 'renovate.json*'
10+
- '.github/workflows/internal-check-renovate-config.yml' # or when this file changed
1011

1112
jobs:
1213
reports:

.github/workflows/internal-cypher-reference-documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- main
77
paths:
88
- '**/*.cypher' # Only run when cypher files changed
9-
- '.github/workflows/cypher-reference-documentation.yml' # or when this file was changed
9+
- '.github/workflows/internal-cypher-reference-documentation.yml' # or when this file was changed
1010
pull_request:
1111
branches:
1212
- main
1313
paths:
1414
- '**/*.cypher' # Only run when cypher files changed
15-
- '.github/workflows/cypher-reference-documentation.yml' # or when this file was changed
15+
- '.github/workflows/internal-cypher-reference-documentation.yml' # or when this file was changed
1616

1717
jobs:
1818
reports:

.github/workflows/internal-environment-variables-reference-documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- main
77
paths:
88
- '**/*.sh' # Only run when script files changed
9-
- '.github/workflows/environment-variables-reference-documentation.yml' # or when this file was changed
9+
- '.github/workflows/environment-internal-variables-reference-documentation.yml' # or when this file was changed
1010
pull_request:
1111
branches:
1212
- main
1313
paths:
1414
- '**/*.sh' # Only run when script files changed
15-
- '.github/workflows/environment-variables-reference-documentation.yml' # or when this file was changed
15+
- '.github/workflows/environment-internal-variables-reference-documentation.yml' # or when this file was changed
1616

1717
jobs:
1818
reports:

.github/workflows/internal-java-code-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'renovate.json'
1818
- 'changelogTemplate.mustache'
1919
- '**.code-workspace'
20-
- '.github/workflows/typescript-code-analysis.yml'
20+
- '.github/workflows/internal-typescript-code-analysis.yml'
2121
- '.github/workflows/*documentation.yml'
2222
pull_request:
2323
branches:
@@ -35,7 +35,7 @@ on:
3535
- 'renovate.json'
3636
- 'changelogTemplate.mustache'
3737
- '**.code-workspace'
38-
- '.github/workflows/typescript-code-analysis.yml'
38+
- '.github/workflows/internal-typescript-code-analysis.yml'
3939
- '.github/workflows/*documentation.yml'
4040

4141
# Requires the secret NEO4J_INITIAL_PASSWORD to be configured

.github/workflows/internal-report-reference-documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
paths:
88
- 'results/**' # Only run results have been updates
99
- '!results/*.md' # Ignore when report reference documentation itself changes
10-
- '.github/workflows/report-reference-documentation.yml' # or when this file was changed
10+
- '.github/workflows/internal-report-reference-documentation.yml' # or when this file was changed
1111
pull_request:
1212
branches:
1313
- main
1414
paths:
1515
- 'results/**' # Only run results have been updates
1616
- '!results/*.md' # Ignore when report reference documentation itself changes
17-
- '.github/workflows/report-reference-documentation.yml' # or when this file was changed
17+
- '.github/workflows/internal-report-reference-documentation.yml' # or when this file was changed
1818

1919
jobs:
2020
reports:

.github/workflows/internal-scripts-reference-documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- main
77
paths:
88
- '**/*.sh' # Only run when script files changed
9-
- '.github/workflows/scripts-reference-documentation.yml' # or when this file was changed
9+
- '.github/workflows/internal-scripts-reference-documentation.yml' # or when this file was changed
1010
pull_request:
1111
branches:
1212
- main
1313
paths:
1414
- '**/*.sh' # Only run when script files changed
15-
- '.github/workflows/scripts-reference-documentation.yml' # or when this file was changed
15+
- '.github/workflows/internal-scripts-reference-documentation.yml' # or when this file was changed
1616

1717
jobs:
1818
reports:

.github/workflows/internal-typescript-code-analysis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'renovate.json'
1818
- 'changelogTemplate.mustache'
1919
- '**.code-workspace'
20-
- '.github/workflows/java-code-analysis.yml'
20+
- '.github/workflows/internal-java-code-analysis.yml'
2121
- '.github/workflows/*documentation.yml'
2222
pull_request:
2323
branches:
@@ -35,7 +35,7 @@ on:
3535
- 'renovate.json'
3636
- 'changelogTemplate.mustache'
3737
- '**.code-workspace'
38-
- '.github/workflows/java-code-analysis.yml'
38+
- '.github/workflows/internal-java-code-analysis.yml'
3939
- '.github/workflows/*documentation.yml'
4040

4141
jobs:
@@ -106,6 +106,7 @@ jobs:
106106
with:
107107
name: ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
108108
path: ./temp/${{ steps.set-analysis-name.outputs.analysis-name }}/source
109+
include-hidden-files: true
109110
if-no-files-found: error
110111
retention-days: 1
111112

.github/workflows/public-analyze-code-graph.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
The name of the sources uploaded with 'actions/upload-artifact'
2424
containing the content of the 'source' directory for the analysis.
2525
Also supports sub-folders for multiple source code bases.
26+
Please use 'include-hidden-files: true' if you also want to upload the git history.
2627
required: false
2728
type: string
2829
default: ''
@@ -70,7 +71,11 @@ jobs:
7071
- name: Assure that either artifacts-upload-name or sources-upload-name is set
7172
if: inputs.artifacts-upload-name == '' && inputs.sources-upload-name == ''
7273
run: echo "Please specify either the input parameter 'artifacts-upload-name' or 'sources-upload-name'."; exit 1
73-
74+
75+
- name: (Debug) Log all variables
76+
if: runner.debug == '1'
77+
run: echo "DEBUG log all variables -> $GITHUB_CONTEXT"
78+
7479
- name: Checkout code-graph-analysis-pipeline
7580
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7681
with:
@@ -142,6 +147,12 @@ jobs:
142147
name: ${{ inputs.artifacts-upload-name }}
143148
path: temp/${{ inputs.analysis-name }}/artifacts
144149

150+
- name: (Debug) Log folder structure of temp directory
151+
if: runner.debug == '1'
152+
working-directory: temp
153+
run: |
154+
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
155+
145156
- name: (Code Analysis) Analyze ${{ inputs.analysis-name }}
146157
working-directory: temp/${{ inputs.analysis-name }}
147158
# Shell type can be skipped if jupyter notebook analysis-results (and therefore conda) aren't needed

COMMANDS.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To run all analysis steps simple execute the following command:
6262

6363
👉 See [scripts/examples/analyzeAxonFramework.sh](./scripts/examples/analyzeAxonFramework.sh) as an example script that combines all the above steps for a Java Project.
6464
👉 See [scripts/examples/analyzeReactRouter.sh](./scripts/examples/analyzeReactRouter.sh) as an example script that combines all the above steps for a Typescript Project.
65-
👉 See [Code Structure Analysis Pipeline](./.github/workflows/java-code-analysis.yml) on how to do this within a GitHub Actions Workflow.
65+
👉 See [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-analysis.yml) on how to do this within a GitHub Actions Workflow.
6666

6767
### Command Line Options
6868

@@ -152,7 +152,7 @@ Change into the [scripts](./scripts/) directory e.g. with `cd scripts` and then
152152
Change into the [results](./results/) directory e.g. with `cd results` and then execute the script [generateCsvReportReference.sh](./scripts/documentation/generateCsvReportReference.sh) with the following command:
153153

154154
👉**Note:** This script is automatically triggered at the end of [copyReportsIntoResults.sh](./scripts/copyReportsIntoResults.sh)
155-
which is included in the pipeline [java-code-analysis.yml](.github/workflows/java-code-analysis.yml) and doesn't need to be executed manually normally.
155+
which is included in the pipeline [internal-java-code-analysis.yml](.github/workflows/internal-java-code-analysis.yml) and doesn't need to be executed manually normally.
156156

157157
```script
158158
./../scripts/documentation/generateCsvReportReference.sh
@@ -163,7 +163,7 @@ which is included in the pipeline [java-code-analysis.yml](.github/workflows/jav
163163
Change into the [results](./results/) directory e.g. with `cd results` and then execute the script [generateJupyterReportReference.sh](./scripts/documentation/generateJupyterReportReference.sh) with the following command:
164164

165165
👉**Note:** This script is automatically triggered at the end of [copyReportsIntoResults.sh](./scripts/copyReportsIntoResults.sh)
166-
which is included in the pipeline [java-code-analysis.yml](.github/workflows/java-code-analysis.yml) and doesn't need to be executed manually normally.
166+
which is included in the pipeline [internal-java-code-analysis.yml](.github/workflows/internal-java-code-analysis.yml) and doesn't need to be executed manually normally.
167167

168168
```script
169169
./../scripts/documentation/generateJupyterReportReference.sh
@@ -174,7 +174,7 @@ which is included in the pipeline [java-code-analysis.yml](.github/workflows/jav
174174
Change into the [results](./results/) directory e.g. with `cd results` and then execute the script [generateImageReference.sh](./scripts/documentation/generateImageReference.sh) with the following command:
175175

176176
👉**Note:** This script is automatically triggered at the end of [copyReportsIntoResults.sh](./scripts/copyReportsIntoResults.sh)
177-
which is included in the pipeline [java-code-analysis.yml](.github/workflows/java-code-analysis.yml) and doesn't need to be executed manually normally.
177+
which is included in the pipeline [internal-java-code-analysis.yml](.github/workflows/internal-java-code-analysis.yml) and doesn't need to be executed manually normally.
178178

179179
```script
180180
./../scripts/documentation/generateImageReference.sh

GETTING_STARTED.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ Use these optional command line options as needed:
112112

113113
## GitHub Actions
114114

115-
👉 See [Code Structure Analysis Pipeline](./.github/workflows/java-code-analysis.yml) on how to do this within a GitHub Actions Workflow.
115+
👉 See [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-analysis.yml) on how to do this within a GitHub Actions Workflow.

INTEGRATION.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The workflow requires the names of the uploaded artifacts (source code and build
1818

1919
You can find examples in:
2020

21-
- [internal-java-code-analysis.yml](./.github/workflows/internal-java-code-analysis.yml)
22-
- [internal-typescript-code-analysis.yml](./.github/workflows/internal-typescript-code-analysis.yml)
21+
- [internal-internal-java-code-analysis.yml](./.github/workflows/internal-internal-java-code-analysis.yml)
22+
- [internal-internal-typescript-code-analysis.yml](./.github/workflows/internal-internal-typescript-code-analysis.yml)
2323

2424
:warning: Note: Workflows with names starting with `internal-` are private and should not be used outside this repository. They may change at any time without notice.
2525

@@ -30,6 +30,7 @@ The workflow parameters are as follows:
3030
- **analysis-name**: The name of the project to analyze. Example: MyProject-1.0.0. This parameter is required and should be a string.
3131
- **artifacts-upload-name**: The name of the artifacts uploaded with [actions/upload-artifact](https://github.com/actions/upload-artifact/tree/65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08) containing the content of the 'artifacts' directory for the analysis. This is used to analyze Java JARs, WARs, EARs, etc. This parameter is optional and defaults to an empty string.
3232
- **sources-upload-name**: The name of the sources uploaded with [actions/upload-artifact](https://github.com/actions/upload-artifact/tree/65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08) containing the content of the 'source' directory for the analysis. It also supports sub-folders for multiple source code bases. This parameter is optional and defaults to an empty string.
33+
Please use 'include-hidden-files: true' if you also want to upload the git history.
3334
- **ref**: The branch, tag, or SHA of the code-graph-analysis-pipeline to checkout. This parameter is optional and defaults to "main".
3435
- **analysis-arguments**: The arguments to pass to the analysis script. This parameter is optional and defaults to '--profile Neo4jv5-low-memory'.
3536
- **typescript-scan-heap-memory**: The heap memory size in MB to use for the TypeScript code scans. This value is only used for the TypeScript code scans and is ignored for other scans. This parameter is optional and defaults to '4096'.

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Contained within this repository is a comprehensive and automated code graph ana
1111
- Analyze static code structure as a graph
1212
- Supports Java Code Analysis
1313
- **🌟New🌟:** Supports Typescript Code Analysis (experimental)
14-
- Fully automated [pipeline for Java](./.github/workflows/java-code-analysis.yml) from tool installation to report generation
15-
- Fully automated [pipeline for Typescript](./.github/workflows/typescript-code-analysis.yml) from tool installation to report generation
14+
- Fully automated [pipeline for Java](./.github/workflows/internal-java-code-analysis.yml) from tool installation to report generation
15+
- Fully automated [pipeline for Typescript](./.github/workflows/internal-typescript-code-analysis.yml) from tool installation to report generation
1616
- Fully automated [local run](./GETTING_STARTED.md)
1717
- Easy integratable in your [continuous integration pipeline](./INTEGRATION.md)
1818
- More than 130 CSV reports for dependencies, metrics, cycles, annotations, algorithms and many more
@@ -113,7 +113,7 @@ Currently (2025), only GitHub Actions are supported.
113113

114114
## :building_construction: Pipeline and Tools
115115

116-
The [Code Structure Analysis Pipeline](./.github/workflows/java-code-analysis.yml) utilizes [GitHub Actions](https://docs.github.com/de/actions) to automate the whole analysis process:
116+
The [Code Structure Analysis Pipeline](./.github/workflows/internal-java-code-analysis.yml) utilizes [GitHub Actions](https://docs.github.com/de/actions) to automate the whole analysis process:
117117

118118
- Use [GitHub Actions](https://docs.github.com/de/actions) Linux Runner
119119
- [Checkout GIT Repository](https://github.com/actions/checkout)
@@ -139,7 +139,7 @@ The [Code Structure Analysis Pipeline](./.github/workflows/java-code-analysis.ym
139139
- [Graph Visualization](./graph-visualization/README.md) uses [node.js](https://nodejs.org/de) and the dependencies listed in [package.json](./graph-visualization/package.json).
140140
- [HPCC-Systems (High Performance Computing Cluster) Web-Assembly (JavaScript)](https://github.com/hpcc-systems/hpcc-js-wasm) containing a wrapper for GraphViz to visualize graph structures.
141141
- [GraphViz](https://gitlab.com/graphviz/graphviz) for CLI Graph Visualization
142-
- [Check links in markdown documentation (GitHub workflow)](./.github/workflows/check-links-in-documentation.yml) uses [markdown-link-check](https://github.com/tcort/markdown-link-check).
142+
- [Check links in markdown documentation (GitHub workflow)](./.github/workflows/internal-check-links-in-documentation.yml) uses [markdown-link-check](https://github.com/tcort/markdown-link-check).
143143

144144
**Big shout-out** 📣 to all the creators and contributors of these great libraries 👍. Projects like this wouldn't be possible without them. Feel free to [create an issue](https://github.com/JohT/code-graph-analysis-pipeline/issues/new/choose) if something is missing or wrong in the list.
145145

@@ -193,7 +193,7 @@ The [Code Structure Analysis Pipeline](./.github/workflows/java-code-analysis.ym
193193

194194
- How can i analyze a different code basis automatically?
195195
👉 Create a new download script like the ones in the [scripts/downloader](./scripts/downloader/) directory. Take for example [downloadAxonFramework.sh](./scripts/downloader/downloadAxonFramework.sh) as a reference for Java projects and [downloadReactRouter.sh](./scripts/downloader/downloadReactRouter.sh) as a reference for Typescript projects.
196-
👉 After downloading, run [analyze.sh](./scripts/analysis/analyze.sh). You can find these steps also in the [pipeline](./.github/workflows/java-code-analysis.yml) as a reference.
196+
👉 After downloading, run [analyze.sh](./scripts/analysis/analyze.sh). You can find these steps also in the [pipeline](./.github/workflows/internal-java-code-analysis.yml) as a reference.
197197

198198
- How can i trigger a full re-scan of all artifacts?
199199
👉 Delete the file `artifactsChangeDetectionHash.txt` in the `artifacts` directory.

0 commit comments

Comments
 (0)