Skip to content

Commit

Permalink
Create generateUml.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator authored May 27, 2024
1 parent 9d39714 commit b929f19
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/generateUml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Generate UML Diagrams

on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
workflow_dispatch:

jobs:
generate-uml:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Install tplant
run: npm install -g tplant

- name: Generate PlantUML class diagram from source
run: tplant -i src/lib/famix/**/*.ts -o doc-metamodel/famix-typescript-model.puml

- name: Generate SVG Diagram from PlantUML
uses: Timmy/plantuml-action@v1
with:
args: -v -config "doc-metamodel/skins.include.puml" -tsvg doc-metamodel/

- name: Upload UML diagrams as artifacts
uses: actions/upload-artifact@v3
with:
name: doc-uml
path: doc-uml

0 comments on commit b929f19

Please sign in to comment.