-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (77 loc) · 3.04 KB
/
typescript-code-analysis.yml
File metadata and controls
83 lines (77 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: react-router Code Graph Analysis (TypeScript)
on:
push:
branches:
- main
# Ignore changes in documentation, general configuration and analysis-results for push events
paths-ignore:
- 'analysis-results/**'
- 'documentation/**'
- '**/*.md'
- '**/*.txt'
- '**/*.css'
- '**/*.html'
- '**/*.js'
- '.gitignore'
- '.gitattributes'
- 'renovate.json'
- '**.code-workspace'
- '.github/workflows/java-code-analysis.yml'
- '.github/workflows/*documentation.yml'
pull_request:
branches:
- main
# Ignore changes in documentation, general configuration and analysis-results for pull request events
paths-ignore:
- 'analysis-results/**'
- 'documentation/**'
- '**/*.md'
- '**/*.txt'
- '**/*.css'
- '**/*.html'
- '**/*.js'
- '.gitignore'
- '.gitattributes'
- 'renovate.json'
- '**.code-workspace'
- '.github/workflows/java-code-analysis.yml'
- '.github/workflows/*documentation.yml'
jobs:
prepare-code-to-analyze:
name: Prepare Code to Analyze
runs-on: ubuntu-latest
outputs:
project-name: ${{ env.PROJECT_NAME }}
analysis-name: ${{ steps.set-analysis-name.outputs.analysis-name }}
project-version: ${{ env.REACT_ROUTER_VERSION }}
env:
PROJECT_NAME: react-router
# Version variable name matches renovate.json configuration entry
REACT_ROUTER_VERSION: 7.13.0
steps:
- name: (Prepare Code to Analyze) Set analysis-name
id: set-analysis-name
run: echo "analysis-name=${{ env.PROJECT_NAME }}-${{ env.REACT_ROUTER_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@58a1ce7375af459127e6576370ac0a836cdce682 # v3.3.0
with:
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
source-repository: https://github.com/remix-run/react-router.git
source-repository-branch: react-router@${{ needs.prepare-code-to-analyze.outputs.project-version }}
jupyter-pdf: "false"
ref: v3.2.0
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 }}