Skip to content

Commit

Permalink
- Modifications to the build.yml file to add logic to push to reports…
Browse files Browse the repository at this point in the history
….cucumber.io.

- Modifications to README.md; added Cucumber reports shield.
  • Loading branch information
habibimoiz committed Nov 1, 2024
1 parent f758041 commit 00c3404
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
<version.cucumber.reporting.plugin>5.8.1</version.cucumber.reporting.plugin>
<version.javax.inject>1</version.javax.inject>
<version.rest.assured>5.5.0</version.rest.assured>
<cucumber.publish.enabled>true</cucumber.publish.enabled>
<cucumber.options>--plugin json:target/cucumber-reports/cucumber.json</cucumber.options>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit 00c3404

Please sign in to comment.