From a8d079012f7a1ffbba43e69f71b6645f6dc794f1 Mon Sep 17 00:00:00 2001 From: Moiz Habibi Date: Wed, 30 Oct 2024 14:18:51 -0400 Subject: [PATCH] #447 - Since the switch over from Jenkins to GitHub Actions for our CI build, we have lost the functionality of published Cucumber reports. The focus of this ticket it to restore that using GitHub Actions. - Modifications to the build.yml file to add logic to push to reports.cucumber.io. - Modifications to README.md; added Cucumber reports shield. --- .github/workflows/build.yml | 4 +++- README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 933bf4738..c556d1a5d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,7 +95,9 @@ jobs: # Run build with the gh-build profile - name: Build aiSSEMBLE run: | - ./mvnw -B clean deploy -U -file pom.xml -Pci,integration-test,gh-build --settings $HOME/.m2/settings.xml + ./mvnw -B clean deploy -U -file pom.xml -Pci,integration-test,gh-build -Dcucumber.publish.enabled=true --settings $HOME/.m2/settings.xml + env: + CUCUMBER_PUBLISH_TOKEN: ${{ secrets.CUCUMBER_PUBLISH_TOKEN }} # Install Maven which is needed for archetype tests - name: Set up Maven uses: stCarolas/setup-maven@v5 diff --git a/README.md b/README.md index c5d6bb446..78a520748 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Maven Central](https://img.shields.io/maven-central/v/com.boozallen.aissemble/aissemble-root.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.boozallen.aissemble%22%20AND%20a%3A%22aissemble-root%22) ![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-core-python?logo=python&logoColor=gold) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-core-python?logo=python&logoColor=gold) +[![Cucumber Report](https://img.shields.io/badge/Cucumber%20Report-reports.cucumber.io-green)]((reports.cucumber.io)) [![Build](https://github.com/boozallen/aissemble/actions/workflows/build.yml/badge.svg)](https://github.com/boozallen/aissemble/actions/workflows/build.yml) [![Publish Docs](https://github.com/boozallen/aissemble/actions/workflows/publish.yml/badge.svg)](https://github.com/boozallen/aissemble/actions/workflows/publish.yml)