diff --git a/.github/workflows/feature-build.yml b/.github/workflows/feature-build.yml index e89b82f..3ef72e9 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@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'