-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 930 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test PlantUML-E2E-Action
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
shellcheck:
name: Analyze shell scripts
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
process:
name: Process PlantUML diagram
needs: [shellcheck]
runs-on: ubuntu-latest
env:
MODULE: "tests"
OUTPUT_DIR: "diagrams"
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Build & render diagram
uses: ./
with:
puml_version: "latest"
py2puml_version: "latest"
path: "tests"
module: ${{ env.MODULE }}
output_dir: ${{ env.OUTPUT_DIR }}
- name: Display diagram
run: |
cat ${{ env.OUTPUT_DIR }}/${{ env.MODULE }}.png