summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 07:50:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 07:50:29 +0000
commit607b673266aaa5adb6e54cbebd50bfad237ba3a6 (patch)
tree1f4b2c530a1ac7a1cec4490eb8946dcb432101bb /.github
parentReleasing debian version 0.7.1-13. (diff)
downloadck-607b673266aaa5adb6e54cbebd50bfad237ba3a6.tar.xz
ck-607b673266aaa5adb6e54cbebd50bfad237ba3a6.zip
Merging upstream version 0.7.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codesee-arch-diagram.yml81
1 files changed, 81 insertions, 0 deletions
diff --git a/.github/workflows/codesee-arch-diagram.yml b/.github/workflows/codesee-arch-diagram.yml
new file mode 100644
index 0000000..5b4e581
--- /dev/null
+++ b/.github/workflows/codesee-arch-diagram.yml
@@ -0,0 +1,81 @@
+on:
+ push:
+ branches:
+ - master
+ pull_request_target:
+ types: [opened, synchronize, reopened]
+
+name: CodeSee Map
+
+jobs:
+ test_map_action:
+ runs-on: ubuntu-latest
+ continue-on-error: true
+ name: Run CodeSee Map Analysis
+ steps:
+ - name: checkout
+ id: checkout
+ uses: actions/checkout@v2
+ with:
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ # codesee-detect-languages has an output with id languages.
+ - name: Detect Languages
+ id: detect-languages
+ uses: Codesee-io/codesee-detect-languages-action@latest
+
+ - name: Configure JDK 16
+ uses: actions/setup-java@v2
+ if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
+ with:
+ java-version: '16'
+ distribution: 'zulu'
+
+ # CodeSee Maps Go support uses a static binary so there's no setup step required.
+
+ - name: Configure Node.js 14
+ uses: actions/setup-node@v2
+ if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
+ with:
+ node-version: '14'
+
+ - name: Configure Python 3.x
+ uses: actions/setup-python@v2
+ if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
+ with:
+ python-version: '3.x'
+ architecture: 'x64'
+
+ - name: Configure Ruby '3.x'
+ uses: ruby/setup-ruby@v1
+ if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }}
+ with:
+ ruby-version: '3.0'
+
+ # CodeSee Maps Rust support uses a static binary so there's no setup step required.
+
+ - name: Generate Map
+ id: generate-map
+ uses: Codesee-io/codesee-map-action@latest
+ with:
+ step: map
+ github_ref: ${{ github.ref }}
+ languages: ${{ steps.detect-languages.outputs.languages }}
+
+ - name: Upload Map
+ id: upload-map
+ uses: Codesee-io/codesee-map-action@latest
+ with:
+ step: mapUpload
+ api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
+ github_ref: ${{ github.ref }}
+
+ - name: Insights
+ id: insights
+ uses: Codesee-io/codesee-map-action@latest
+ with:
+ step: insights
+ api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
+ github_ref: ${{ github.ref }}