added pr check
All checks were successful
check PR / check_render (pull_request) Successful in 24s

This commit is contained in:
Elizabeth
2024-06-21 21:51:05 +02:00
parent 4ababd0a0a
commit 8eceb97c0f
2 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
name: check PR
on:
pull_request:
types:[opened, reopened, edited]
jobs:
check_render:
runs-on: ubuntu-latest
steps:
- 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
- name: render
run: ./jdk-21.0.3+9-jre/bin/java -jar plantuml-1.2024.5.jar polycule.puml

View File

@@ -1,5 +1,4 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
name: Render diagram
on:
push:
branches: