diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 933bf4738..ef96316ca 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,7 +17,7 @@ on:
type: string
default: "dev"
push:
- branches: [ "dev" ]
+ branches: [ "447-publish-cucumber-reports-github-actions" ]
schedule:
- cron: "0 6 * * *" # every day at 6am UTC
@@ -95,7 +95,13 @@ 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.options"=--plugin json:target/cucumber-reports/cucumber.json" --settings $HOME/.m2/settings.xml
+ # Publish Cucumber Report
+ - name: Publish Cucumber Report
+ env:
+ CUCUMBER_PUBLISH_TOKEN: b9aed90d-fac1-4b6c-bc07-83d0df2d8bbf
+ run: |
+ ./mvnw verify -Dcucumber.publish.enabled=true
# 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..85e92455f 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@
[![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 Reports](https://img.shields.io/badge/Cucumber%20Report-aiSSEMBLE-blue)](https://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)
diff --git a/pom.xml b/pom.xml
index 98f375cbd..9363467aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,6 +73,8 @@
5.8.1
1
5.5.0
+ true
+ --plugin json:target/cucumber-reports/cucumber.json