Merge pull request 'Refactor the workflows' (#12) from amedee/polycule:refactor into main
All checks were successful
Render diagram / Render-Main (push) Successful in 28s

Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
2024-10-20 10:31:41 +02:00
4 changed files with 43 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
name: check PR
on:
pull_request:
types:[opened, reopened, edited]
types: [opened, reopened, edited]
jobs:
check_render:
runs-on: ubuntu-latest
@@ -9,10 +9,13 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Download renderer
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.5/plantuml-1.2024.5.jar
- name: Download java
run: wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.3_9.tar.gz; tar -xvzf OpenJDK21U-jre_x64_linux_hotspot_21.0.3_9.tar.gz
- name: install graphviz
run: sudo add-apt-repository universe; sudo apt update; apt install graphviz -y
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-1.2024.7.jar
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2
- name: render
run: ./jdk-21.0.3+9-jre/bin/java -jar plantuml-1.2024.5.jar polycule.puml
run: java -jar plantuml-1.2024.7.jar polycule.puml

View File

@@ -11,13 +11,16 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- name: Download renderer
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.5/plantuml-1.2024.5.jar
- name: Download java
run: wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.3_9.tar.gz; tar -xvzf OpenJDK21U-jre_x64_linux_hotspot_21.0.3_9.tar.gz
- name: install graphviz
run: sudo add-apt-repository universe; sudo apt update; apt install graphviz -y
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-1.2024.7.jar
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2
- name: render
run: ./jdk-21.0.3+9-jre/bin/java -jar plantuml-1.2024.5.jar polycule.puml
run: java -jar plantuml-1.2024.7.jar polycule.puml
- name: upload to cdn
uses: appleboy/scp-action@v0.1.7
with:

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

23
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,23 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: ['--unsafe']
- id: check-added-large-files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
hooks:
- id: check-github-actions
args: [--verbose]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint