Skip to content

Commit 557c4d9

Browse files
author
azazelm3dj3d
authored
Merge pull request #23 from InQuest/develop
Update CodeSee
2 parents cd0d110 + 0d2a44f commit 557c4d9

File tree

1 file changed

+6
-74
lines changed

1 file changed

+6
-74
lines changed
+6-74
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,22 @@
11
# This workflow was added by CodeSee. Learn more at https://codesee.io/
2+
# This is v2.0 of this workflow file
23
on:
34
push:
45
branches:
56
- master
67
pull_request_target:
78
types: [opened, synchronize, reopened]
89

9-
name: CodeSee Map
10+
name: CodeSee
1011

1112
permissions: read-all
1213

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

0 commit comments

Comments
 (0)