Skip to content

Commit 232ba49

Browse files
author
codesee-maps[bot]
authored
Install the CodeSee workflow. Learn more at https://docs.codesee.io
1 parent 88522bd commit 232ba49

File tree

1 file changed

+9
-68
lines changed

1 file changed

+9
-68
lines changed
Lines changed: 9 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,22 @@
1+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
2+
# This is v2.0 of this workflow file
13
on:
24
push:
35
branches:
46
- master
57
pull_request_target:
68
types: [opened, synchronize, reopened]
79

8-
name: CodeSee Map
10+
name: CodeSee
11+
12+
permissions: read-all
913

1014
jobs:
11-
test_map_action:
15+
codesee:
1216
runs-on: ubuntu-latest
1317
continue-on-error: true
14-
name: Run CodeSee Map Analysis
18+
name: Analyze the repo with CodeSee
1519
steps:
16-
- name: checkout
17-
id: checkout
18-
uses: actions/checkout@v2
19-
with:
20-
repository: ${{ github.event.pull_request.head.repo.full_name }}
21-
ref: ${{ github.event.pull_request.head.ref }}
22-
fetch-depth: 0
23-
24-
# codesee-detect-languages has an output with id languages.
25-
- name: Detect Languages
26-
id: detect-languages
27-
uses: Codesee-io/codesee-detect-languages-action@latest
28-
29-
- name: Configure JDK 16
30-
uses: actions/setup-java@v2
31-
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
32-
with:
33-
java-version: '16'
34-
distribution: 'zulu'
35-
36-
# CodeSee Maps Go support uses a static binary so there's no setup step required.
37-
38-
- name: Configure Node.js 14
39-
uses: actions/setup-node@v2
40-
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
41-
with:
42-
node-version: '14'
43-
44-
- name: Configure Python 3.x
45-
uses: actions/setup-python@v2
46-
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
47-
with:
48-
python-version: '3.10'
49-
architecture: 'x64'
50-
51-
- name: Configure Ruby '3.x'
52-
uses: ruby/setup-ruby@v1
53-
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }}
54-
with:
55-
ruby-version: '3.0'
56-
57-
# CodeSee Maps Rust support uses a static binary so there's no setup step required.
58-
59-
- name: Generate Map
60-
id: generate-map
61-
uses: Codesee-io/codesee-map-action@latest
62-
with:
63-
step: map
64-
github_ref: ${{ github.ref }}
65-
languages: ${{ steps.detect-languages.outputs.languages }}
66-
67-
- name: Upload Map
68-
id: upload-map
69-
uses: Codesee-io/codesee-map-action@latest
70-
with:
71-
step: mapUpload
72-
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
73-
github_ref: ${{ github.ref }}
74-
75-
- name: Insights
76-
id: insights
77-
uses: Codesee-io/codesee-map-action@latest
20+
- uses: Codesee-io/codesee-action@v2
7821
with:
79-
step: insights
80-
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
81-
github_ref: ${{ github.ref }}
22+
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}

0 commit comments

Comments
 (0)