Skip to content

Commit

Permalink
Merge pull request #8 from TurquoiseSpace/TurquoiseSpace
Browse files Browse the repository at this point in the history
Turquoise space
  • Loading branch information
matcdac authored Dec 9, 2023
2 parents 9694ff1 + efe5d45 commit 02349e2
Show file tree
Hide file tree
Showing 47 changed files with 388 additions and 247 deletions.
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ updates:
time: "03:00"
open-pull-requests-limit: 99
reviewers:
- valfirst
- matcdac
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "03:00"
open-pull-requests-limit: 99
reviewers:
- valfirst

- matcdac
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
name: jbehave-junit-runner CI
name: Turquoise Space - JBehave Junit Runner - CI / CD

on:
push:
branches:
- master
- TurquoiseSpace
- 3.0.0
pull_request:
branches:
- master
- TurquoiseSpace
- 3.0.0

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17, 20 ]
java: [ 11, 17, 21 ]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Get Current Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d_%H-%M-%S_%Z')"

- name: Setup JDK
uses: actions/setup-java@v4
with:
Expand All @@ -28,7 +41,7 @@ jobs:
cache: 'maven'

- name: Build with Maven
run: mvn clean verify
run: mvn clean install -Dgpg.skip=true

- name: Publish test coverage data to Coveralls
if: matrix.java == '17'
Expand Down Expand Up @@ -59,9 +72,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_BRANCH: ${{ steps.extract_branch.outputs.branch }}
JOB_DATETIME: ${{ steps.date.outputs.date }}
run: |
if [[ -n $GITHUB_TOKEN && -n $SONAR_TOKEN ]]; then
mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=valfirst-github -Dsonar.projectKey=com.github.valfirst:jbehave-junit-runner -Dsonar.token=${SONAR_TOKEN} -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} -Dsonar.pullrequest.key=${{github.event.pull_request.number}};
mvn verify sonar:sonar -Dsonar.token=${SONAR_TOKEN} -Dsonar.branch.name=${GITHUB_BRANCH} -Dsonar.analysis.buildNumber=${GITHUB_BRANCH}_${JOB_DATETIME} -Dgpg.skip=true -Pcoverage
else
echo No GITHUB_TOKEN and/or SONAR_TOKEN, the publishing to SonarCloud is skipped;
fi;
12 changes: 8 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: "CodeQL"
name: "Turquoise Space - JBehave Junit Runner - CodeQL Cron"

on:
push:
branches: [ "master" ]
branches: [ "master", "TurquoiseSpace" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "TurquoiseSpace" ]
schedule:
- cron: "12 23 * * 4"
# Pattern for Cron is [Minute] [Hour] [Day of Month] [Month] [Day of Week (where 0 is Sunday)]
# Everyday at midnight
- cron: "0 0 * * *"
# At 23:12 on every Thursday
#- cron: "12 23 * * 4"

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at valfirst@yandex.ru. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at turquoise-space@googlegroups.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)
Copyright (c) 2012-2016 codecentric AG
Copyright (c) 2017-2022 Valery Yatsynovich
Copyright (c) 2023 Prakhar Makhija

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
Expand Down
70 changes: 51 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
JBehave JUnit Integration
=========================
[![jbehave-junit-runner CI](https://github.com/valfirst/jbehave-junit-runner/actions/workflows/ci.yml/badge.svg)](https://github.com/valfirst/jbehave-junit-runner/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/valfirst/jbehave-junit-runner/badge.svg?branch=master)](https://coveralls.io/github/valfirst/jbehave-junit-runner?branch=master)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=com.github.valfirst%3Ajbehave-junit-runner&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=com.github.valfirst%3Ajbehave-junit-runner)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d81f58136aa245668240b7d851a54d50)](https://www.codacy.com/gh/valfirst/jbehave-junit-runner/dashboard?utm_source=github.com&utm_medium=referral&utm_content=valfirst/jbehave-junit-runner&utm_campaign=Badge_Grade)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.valfirst/jbehave-junit-runner.svg)](https://central.sonatype.com/search?q=jbehave-junit-runner&namespace=com.github.valfirst)
[![Javadocs](http://www.javadoc.io/badge/com.github.valfirst/jbehave-junit-runner.svg)](http://www.javadoc.io/doc/com.github.valfirst/jbehave-junit-runner)
[![Known Vulnerabilities](https://snyk.io/test/github/valfirst/jbehave-junit-runner/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/valfirst/jbehave-junit-runner?targetFile=pom.xml)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/valfirst/jbehave-junit-runner/master/LICENSE)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvalfirst%2Fjbehave-junit-runner.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvalfirst%2Fjbehave-junit-runner?ref=badge_shield)

![Visit Count](https://profile-counter.glitch.me/TurquoiseSpace_jbehave-junit-runner/count.svg)

[![Java Doc](https://javadoc.io/badge2/com.github.TurquoiseSpace/jbehave-junit-runner/javadoc.svg)](https://javadoc.io/doc/com.github.TurquoiseSpace/jbehave-junit-runner)
[![GitHub (All Releases)](https://img.shields.io/github/downloads/TurquoiseSpace/jbehave-junit-runner/total?color=blue)](https://repo1.maven.org/maven2/com/github/TurquoiseSpace/jbehave-junit-runner/)
[![GitHub (Latest Release)](https://img.shields.io/github/downloads/TurquoiseSpace/jbehave-junit-runner/3.0.0/total)](https://repo1.maven.org/maven2/com/github/TurquoiseSpace/jbehave-junit-runner/3.0.0/)

[![Maven Central](https://img.shields.io/maven-central/v/com.github.TurquoiseSpace/jbehave-junit-runner.svg?label=Maven%20Central)](https://repo1.maven.org/maven2/com/github/TurquoiseSpace/jbehave-junit-runner/)
[![Sonatype Central Search](https://img.shields.io/maven-central/v/com.github.TurquoiseSpace/jbehave-junit-runner.svg?label=Sonatype%20Central%20Search)](https://central.sonatype.com/search?q=jbehave-junit-runner&namespace=com.github.TurquoiseSpace)
[![Sonatype Central Artifact](https://img.shields.io/maven-central/v/com.github.TurquoiseSpace/jbehave-junit-runner.svg?label=Sonatype%20Central%20Artifact)](https://central.sonatype.com/artifact/com.github.TurquoiseSpace/jbehave-junit-runner)
[![MVN Repository](https://img.shields.io/maven-central/v/com.github.TurquoiseSpace/jbehave-junit-runner.svg?label=MVN%20Repository)]([https://repo1.maven.org/maven2/com/github/TurquoiseSpace/jbehave-junit-runner/](https://mvnrepository.com/artifact/com.github.TurquoiseSpace/jbehave-junit-runner))

[![jbehave-junit-runner CI](https://github.com/TurquoiseSpace/jbehave-junit-runner/actions/workflows/ci.yml/badge.svg)](https://github.com/TurquoiseSpace/jbehave-junit-runner/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/TurquoiseSpace/jbehave-junit-runner/badge.svg?branch=master)](https://coveralls.io/github/TurquoiseSpace/jbehave-junit-runner?branch=master)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d81f58136aa245668240b7d851a54d50)](https://www.codacy.com/gh/TurquoiseSpace/jbehave-junit-runner/dashboard?utm_source=github.com&utm_medium=referral&utm_content=TurquoiseSpace/jbehave-junit-runner&utm_campaign=Badge_Grade)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=TurquoiseSpace_jbehave-junit-runner&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=TurquoiseSpace_jbehave-junit-runner)
[![Known Vulnerabilities](https://snyk.io/test/github/TurquoiseSpace/jbehave-junit-runner/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/TurquoiseSpace/jbehave-junit-runner?targetFile=pom.xml)

[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TurquoiseSpace/jbehave-junit-runner/master/LICENSE)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner?ref=badge_shield&issueType=license)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner?ref=badge_small)


This little project is designed to make JBehave
Expand All @@ -22,6 +34,15 @@ The project consists of only a handful of classes
and is easy to use.


Using Java
-------------------
Minimum JDK / Java SE Support : 11
Compiled as Class File Major Version : 55

Refer the Table
https://docs.oracle.com/javase/specs/jvms/se21/html/jvms-4.html#jvms-4.1-200-B.2


Using Maven
-------------------
The easiest way is to include
Expand All @@ -31,18 +52,18 @@ all available from Maven Central.

```xml
<dependency>
<groupId>com.github.valfirst</groupId>
<groupId>com.github.TurquoiseSpace</groupId>
<artifactId>jbehave-junit-runner</artifactId>
<version>2.3.2</version>
<version>3.0.0</version>
</dependency>
```

Note that the JBehave library is set to scope `provided`
in the POM, because any project using this Runner will
naturally have their own version of JBehave already.
Note that the JBehave library is NOT set to scope `provided` in the POM
different from earlier versions published under valfirst/jbehave-junit-runner
because any project using this Runner will naturally have their own version of JBehave already.

Current development SNAPSHOT versions are available from
[Sonatype's Nexus for Open Source projects](https://oss.sonatype.org/content/repositories/snapshots/com/github/valfirst/jbehave-junit-runner/).
[Sonatype's Nexus for Open Source projects](https://oss.sonatype.org/content/repositories/snapshots/com/github/TurquoiseSpace/jbehave-junit-runner/).

Without Maven
---------------------
Expand All @@ -52,10 +73,15 @@ add the library to your classpath.
Also make sure you add the dependencies of this library to the classpath as well. They can be
seen in the `pom.xml`. For convenience, they are listed here, too:

* jbehave-core (4.1+)
* junit (4.12)
* jbehave-core (5.2.0)
* junit (5.10.1)

Below dependencies are set with test scope

* mockito (5.7.0)
* hamcrest (2.2)

Your project will of course have JBehave already, just make sure it is version 4.1 or above.
Your project will of course have JBehave already, just make sure it is version 5.2.0 or above.


Usage
Expand Down Expand Up @@ -182,4 +208,10 @@ This project is based on the original implementation by Mark Burnett, located at


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fvalfirst%2Fjbehave-junit-runner.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvalfirst%2Fjbehave-junit-runner?ref=badge_large)

MIT License

[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TurquoiseSpace/jbehave-junit-runner/master/LICENSE)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner?ref=badge_shield)

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner.svg?type=large&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2FTurquoiseSpace%2Fjbehave-junit-runner?ref=badge_large&issueType=license)
Loading

0 comments on commit 02349e2

Please sign in to comment.