-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into GLPH-importer-new-changes
- Loading branch information
Showing
25 changed files
with
969 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
smalltalk: [ Moose64-11] | ||
name: ${{ matrix.smalltalk }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
|
||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
|
||
- run: smalltalkci -s ${{ matrix.smalltalk }} | ||
shell: bash | ||
timeout-minutes: 15 | ||
|
||
- name: Build meta-model planuml image | ||
run: | | ||
$SMALLTALK_CI_VM $SMALLTALK_CI_IMAGE st ./ci/generatePUML.st | ||
- name: Generate PNG UML Diagrams | ||
uses: Timmy/plantuml-action@v1 | ||
with: | ||
args: -v -tpng gitproject.puml | ||
|
||
- name: Move artifact | ||
run: | | ||
mkdir doc-uml | ||
mv *.png doc-uml | ||
- name: Init new repo in dist folder and commit generated files | ||
run: | | ||
cd doc-uml/ | ||
git init | ||
git add -A | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m 'update doc' | ||
# Careful, this can kill your project | ||
- name: Force push to destination branch | ||
uses: ad-m/[email protected] | ||
with: | ||
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
force: true | ||
# Destination branch to push changes | ||
branch: v1/doc | ||
# We have to push from the folder where files were generated. | ||
# Same were the new repo was initialized in the previous step | ||
directory: ./doc-uml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
documentor := FamixUMLDocumentor new. | ||
documentor | ||
model: GLHModel; | ||
beWithStubs; | ||
excludeClasses: { GLHModel. TEntityMetaLevelDependency. Object . GLHEntity . GLHTEntityCreator }; | ||
generate. | ||
|
||
'gitproject.puml' asFileReference writeStreamDo: [ :stream | | ||
FamixUMLPlantUMLBackend new | ||
outputStream: stream; | ||
export: documentor umlEntities. | ||
]. | ||
|
||
Smalltalk snapshot: false andQuit: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.