Skip to content

Commit 960a7d8

Browse files
author
codesee-maps[bot]
authored
Install the CodeSee workflow. Learn more at https://docs.codesee.io
1 parent 645f311 commit 960a7d8

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request_target:
7+
types: [opened, synchronize, reopened]
8+
9+
name: CodeSee Map
10+
11+
permissions: read-all
12+
13+
jobs:
14+
test_map_action:
15+
runs-on: ubuntu-latest
16+
continue-on-error: true
17+
name: Run CodeSee Map Analysis
18+
steps:
19+
- name: checkout
20+
id: checkout
21+
uses: actions/checkout@v2
22+
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 }}

0 commit comments

Comments
 (0)