Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
61daca2
Check for deleted files
pbronneberg Apr 7, 2022
610f271
Merge pull request #1 from philips-forks/bugfix/multi-commit-removed-…
pbronneberg Apr 7, 2022
7544261
Update plantuml.yml
pbronneberg Apr 29, 2022
504c619
Fix: use correct path to check for existing files
pbronneberg Apr 30, 2022
646137e
Generate new release
pbronneberg Apr 30, 2022
bfa48aa
Rename workflow to CI
pbronneberg Apr 30, 2022
5bb4985
Automate packaging
pbronneberg Apr 30, 2022
1bff849
Merge pull request #2 from philips-forks/bugfix/multi-commit-removed-…
pbronneberg Apr 30, 2022
ed4cf03
Add new distribution
github-actions[bot] Apr 30, 2022
4d63168
Configure plantuml server url
pbronneberg May 1, 2022
085360c
add self-hosted plantuml server as example
pbronneberg May 1, 2022
e79cc48
use plantuml generation as smoke-test
pbronneberg May 1, 2022
8808e29
Add new distribution
github-actions[bot] May 1, 2022
69eeb3d
either run test on pull-request or on master
pbronneberg May 1, 2022
8db8a4f
Merge branch 'feature/custom-server-url' of github.com:philips-forks/…
pbronneberg May 1, 2022
7524a64
run plantuml action from local repository and branch
pbronneberg May 1, 2022
a2f9c7e
Fix path for local action
pbronneberg May 1, 2022
b24bd30
explicly pass variable to function
pbronneberg May 1, 2022
cce06da
Add new distribution
github-actions[bot] May 1, 2022
41ecf3a
Also run smoketest on workflow changes
pbronneberg May 1, 2022
39205be
Merge branch 'feature/custom-server-url' of github.com:philips-forks/…
pbronneberg May 1, 2022
713ace6
Change plantuml file as check
pbronneberg May 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: tests
on: push
name: CI
on:
push:
paths-ignore: ["**/index.js"]
jobs:
tests:
runs-on: ubuntu-latest
Expand All @@ -13,7 +15,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install depedencies
- name: install dependencies
run: npm install
- name: run tests
run: "npm run test:ci"
Expand All @@ -31,3 +33,26 @@ jobs:
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build
package:
runs-on: ubuntu-latest
name: package
steps:
- name: checkout
uses: actions/checkout@v2
- name: install node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install dependencies
run: npm install
- name: Transpile typescript
run: "npm run build"
- name: Package distribution
run: "npm run package"
- name: Commit the new distribution
uses: EndBug/add-and-commit@v9
with:
# This makes the GH Actions user/bot the author of the commit
default_author: github_actions
message: 'Add new distribution'
add: "dist/index.js"
30 changes: 29 additions & 1 deletion .github/workflows/plantuml.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
name: generate plantuml
on:
pull_request:
paths:
- "dist/index.js"
- "action.yml"
- "./github/workflows/plantuml.yml"
push:
branches:
- master
jobs:
generate_plantuml:
runs-on: ubuntu-latest
name: plantuml
strategy:
matrix:
server: ['default', 'local']
include:
- server: "default"
server-url: "http://www.plantuml.com/plantuml"
run-container: false
- server: "local"
server-url: "http://localhost:8080"
run-container: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: run plantuml server container
if: ${{ matrix.run-container }}
run: |
docker run -d --name plantuml -p 8080:8080 plantuml/plantuml-server:jetty

echo TEST: Wait until plantuml server container is started
timeout 30 bash -c 'while [[ "$(curl -X GET -s -o /dev/null -w ''%{http_code}'' curl localhost:8080/svg/pStDuNBAJrBGjLDmpCbCJbMmKiX8JIp9ICv8JSxcSaZDIm6g0000)" != "200" ]]; do sleep 2; done' || false
- name: plantuml
id: plantuml
uses: grassedge/generate-plantuml-action@master
uses: ./
with:
path: example
plantuml-server-url: ${{ matrix.server-url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clean-up plantuml server
if: always() && ${{ matrix.run-container }}
run: |
docker stop plantuml
docker rm plantuml
38 changes: 22 additions & 16 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: 'Generate Plantuml'
description: 'Generate uml diagrams with Plantuml Server and push them to your repository.'
author: 'grassedge'
inputs:
path:
description: 'path to directory which generated svg is stored'
default: '.'
message:
description: 'the commit message when committing generated images'
default: 'Render PlantUML files'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'image'
color: 'gray-dark'
name: 'Generate Plantuml'
description: 'Generate uml diagrams with Plantuml Server and push them to your repository.'
author: 'grassedge'
inputs:
plantuml-server-url:
description: 'url to the plantuml server'
default: 'http://www.plantuml.com/plantuml'
required: false
path:
description: 'path to directory which generated svg is stored'
default: '.'
required: false
message:
description: 'the commit message when committing generated images'
default: 'Render PlantUML files'
required: false
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'image'
color: 'gray-dark'
210 changes: 168 additions & 42 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/sample-activity.pu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@startuml
:Hello world;
:This is on defined on
:This is defined on
several **lines**;
@enduml
Loading