]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
github: Allow AsciiDoc content in tests to render diagrams
authorJoe Mooring <joe@mooring.com>
Fri, 31 Oct 2025 19:47:40 +0000 (12:47 -0700)
committerGitHub <noreply@github.com>
Fri, 31 Oct 2025 19:47:40 +0000 (12:47 -0700)
.github/workflows/test.yml

index 626c1c8fd5bd893a6115193d7e7342a9157a2ba7..45b4fc30a82fb377c8bbb9f0174994e57315ba2b 100644 (file)
@@ -47,16 +47,24 @@ jobs:
       - name: Install Ruby
         uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
         with:
-          ruby-version: "2.7"
-          bundler-cache: true #
+          ruby-version: "3.4.5"
+      - name: Install gems
+        run: |
+          gem install asciidoctor -v "2.0.26"
+          gem install asciidoctor-diagram -v "3.0.1"
+          gem install asciidoctor-diagram-plantuml -v "1.2025.3"
+      - name: Install Java # required by asciidoctor-diagram-plantuml
+        uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
+        with:
+          distribution: temurin
+          java-version: "25"
+          java-package: jre
       - name: Install Python
         uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
         with:
           python-version: "3.x"
       - name: Install Mage
         run: go install github.com/magefile/mage@v1.15.0
-      - name: Install asciidoctor
-        uses: reitzig/actions-asciidoctor@c642db5eedd1d729bb8c92034770d0b2f769eda6 # v2.0.2
       - name: Install docutils
         run: |
           pip install docutils