From 88324794f55193e09222b69a82fb66a29765327a Mon Sep 17 00:00:00 2001 From: Klaus Neuschwander Date: Wed, 10 Sep 2025 15:39:11 +0200 Subject: [PATCH 1/2] Add ReqIF build in github actions --- .github/workflows/feature-build.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/feature-build.yml b/.github/workflows/feature-build.yml index e89b82f..7a3d7a9 100644 --- a/.github/workflows/feature-build.yml +++ b/.github/workflows/feature-build.yml @@ -46,3 +46,44 @@ jobs: with: name: good_practice-${{ steps.extract_branch.outputs.branch }} path: good_practice + + reqif: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout branch + uses: actions/checkout@v4 + with: + path: input + + - name: Extract branch name + shell: bash + run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" | tr '/' '-' >> $GITHUB_OUTPUT + id: extract_branch + + - name: Install asciidoctor + run: sudo apt update && sudo apt install -y asciidoctor + + - name: Install plantuml gems + run: gem install --user asciidoctor-diagram asciidoctor-diagram-plantuml + + - name: Install python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install generator + run: pip install git+https://github.com/ornet-ev/asciidoc-to-reqif.git@main + + - name: generate ReqIF + run: asciidoc-to-reqif input/specification/good_practice.adoc good_practice.reqifz -vv --json input/specification/good_practice.json + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: good-practice-reqif-${{ steps.extract_branch.outputs.branch }} + path: good_practice.reqifz + if-no-files-found: 'error' From 875f2933e03ddc5ea17686e6a3420c09bcec00e0 Mon Sep 17 00:00:00 2001 From: Klaus Neuschwander Date: Wed, 8 Oct 2025 11:57:06 +0200 Subject: [PATCH 2/2] Switch to explicit commit hash --- .github/workflows/feature-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/feature-build.yml b/.github/workflows/feature-build.yml index 7a3d7a9..3ef72e9 100644 --- a/.github/workflows/feature-build.yml +++ b/.github/workflows/feature-build.yml @@ -76,7 +76,7 @@ jobs: python-version: '3.12' - name: Install generator - run: pip install git+https://github.com/ornet-ev/asciidoc-to-reqif.git@main + run: pip install git+https://github.com/ornet-ev/asciidoc-to-reqif.git@fc1f13aa7ddfb85938ac77a054296d629a1b90ca - name: generate ReqIF run: asciidoc-to-reqif input/specification/good_practice.adoc good_practice.reqifz -vv --json input/specification/good_practice.json