|
1 | 1 | # This workflow was added by CodeSee. Learn more at https://codesee.io/
|
| 2 | +# This is v2.0 of this workflow file |
2 | 3 | on:
|
3 | 4 | push:
|
4 | 5 | branches:
|
5 | 6 | - master
|
6 | 7 | pull_request_target:
|
7 | 8 | types: [opened, synchronize, reopened]
|
8 | 9 |
|
9 |
| -name: CodeSee Map |
| 10 | +name: CodeSee |
10 | 11 |
|
11 | 12 | permissions: read-all
|
12 | 13 |
|
13 | 14 | jobs:
|
14 |
| - test_map_action: |
| 15 | + codesee: |
15 | 16 | runs-on: ubuntu-latest
|
16 | 17 | continue-on-error: true
|
17 |
| - name: Run CodeSee Map Analysis |
| 18 | + name: Analyze the repo with CodeSee |
18 | 19 | steps:
|
19 |
| - - name: checkout |
20 |
| - id: checkout |
21 |
| - uses: actions/checkout@v2 |
| 20 | + - uses: Codesee-io/codesee-action@v2 |
22 | 21 | 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