Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/feature-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@fc1f13aa7ddfb85938ac77a054296d629a1b90ca

- 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'