Skip to content

Commit 1ff32c9

Browse files
committed
Simplify react-router analysis pipeline
1 parent 12825dc commit 1ff32c9

1 file changed

Lines changed: 4 additions & 33 deletions

File tree

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

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -45,58 +45,29 @@ jobs:
4545
outputs:
4646
project-name: ${{ env.PROJECT_NAME }}
4747
analysis-name: ${{ steps.set-analysis-name.outputs.analysis-name }}
48-
sources-upload-name: ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
48+
project-version: ${{ env.REACT_ROUTER_VERSION }}
4949

5050
env:
5151
PROJECT_NAME: react-router
5252
# Version variable name matches renovate.json configuration entry
5353
REACT_ROUTER_VERSION: 6.30.2
5454

5555
steps:
56-
- name: (Prepare Code to Analyze) Checkout react-router repository
57-
run: |
58-
git clone https://github.com/remix-run/react-router.git --branch "react-router@${{ env.REACT_ROUTER_VERSION }}" --single-branch .
59-
60-
61-
- name: (Prepare Code to Analyze) Setup pnpm for react-router
62-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
63-
64-
- name: (Prepare Code to Analyze) Install dependencies with pnpm
65-
run: pnpm install --frozen-lockfile --strict-peer-dependencies
66-
6756
- name: (Prepare Code to Analyze) Set analysis-name
6857
id: set-analysis-name
6958
run: echo "analysis-name=${{ env.PROJECT_NAME }}-${{ env.REACT_ROUTER_VERSION }}" >> "$GITHUB_OUTPUT"
70-
71-
- name: (Prepare Code to Analyze) Generate ARTIFACT_UPLOAD_ID
72-
shell: bash
73-
run: echo "ARTIFACT_UPLOAD_ID=$(LC_ALL=C tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 10)" >> $GITHUB_ENV
74-
75-
- name: (Prepare Code to Analyze) Set sources-upload-name
76-
id: set-sources-upload-name
77-
run: echo "sources-upload-name=${{ steps.set-analysis-name.outputs.analysis-name }}-analysis-sources_input-${{ env.ARTIFACT_UPLOAD_ID }}" >> "$GITHUB_OUTPUT"
78-
79-
- name: (Prepare Code to Analyze) Upload code to analyze
80-
if: success()
81-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
82-
with:
83-
name: ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
84-
path: .
85-
include-hidden-files: true
86-
if-no-files-found: error
87-
retention-days: 1
88-
8959

9060
analyze-code-graph:
9161
name: Analyze Code Graph
9262
needs: [prepare-code-to-analyze]
9363
uses: JohT/code-graph-analysis-pipeline/.github/workflows/public-analyze-code-graph.yml@v3.1.2
9464
with:
9565
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
96-
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
66+
source-repository: https://github.com/remix-run/react-router.git
67+
source-repository-branch: react-router@${{ needs.prepare-code-to-analyze.outputs.project-version }}
68+
jupyter-pdf: "false"
9769
ref: v3.1.2
9870

99-
10071
commit-analysis-results:
10172
name: Commit Analysis Results
10273
needs: [prepare-code-to-analyze, analyze-code-graph]

0 commit comments

Comments
 (0)