forked from Elizhium/polycule
Merge pull request 'Refactor the workflows' (#12) from amedee/polycule:refactor into main
Reviewed-on: Elizhium/polycule#12
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: check PR
|
name: check PR
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:[opened, reopened, edited]
|
types: [opened, reopened, edited]
|
||||||
jobs:
|
jobs:
|
||||||
check_render:
|
check_render:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -9,10 +9,13 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Download renderer
|
- name: Download renderer
|
||||||
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.5/plantuml-1.2024.5.jar
|
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-1.2024.7.jar
|
||||||
- name: Download java
|
- name: Setup 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
|
uses: actions/setup-java@v4
|
||||||
- name: install graphviz
|
with:
|
||||||
run: sudo add-apt-repository universe; sudo apt update; apt install graphviz -y
|
distribution: 'temurin'
|
||||||
|
java-version: '21'
|
||||||
|
- name: Setup Graphviz
|
||||||
|
uses: ts-graphviz/setup-graphviz@v2
|
||||||
- name: render
|
- 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
|
||||||
|
|||||||
@@ -11,13 +11,16 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Download renderer
|
- name: Download renderer
|
||||||
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.5/plantuml-1.2024.5.jar
|
run: wget https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-1.2024.7.jar
|
||||||
- name: Download java
|
- name: Setup 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
|
uses: actions/setup-java@v4
|
||||||
- name: install graphviz
|
with:
|
||||||
run: sudo add-apt-repository universe; sudo apt update; apt install graphviz -y
|
distribution: 'temurin'
|
||||||
|
java-version: '21'
|
||||||
|
- name: Setup Graphviz
|
||||||
|
uses: ts-graphviz/setup-graphviz@v2
|
||||||
- name: render
|
- 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
|
- name: upload to cdn
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
|
|||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.idea/
|
||||||
23
.pre-commit-config.yaml
Normal file
23
.pre-commit-config.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user