-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andres Granizo
committed
Aug 27, 2024
1 parent
e1eb789
commit 92b8e97
Showing
1 changed file
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,31 @@ | ||
name: CI Workflow | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Set up Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: wrapper | ||
- name: Build with Gradle | ||
run: ./gradlew clean test | ||
|
||
- name: Build and Run Tests | ||
run: ./gradlew clean build | ||
- name: Archive Serenity Reports | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: serenity-reports | ||
path: target/site/serenity/ | ||
|
||
- name: Publish Test Report | ||
if: always() | ||
- name: Archive Cucumber JSON Report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Serenity Report | ||
path: build/reports/tests/test/index.html | ||
name: cucumber-reports | ||
path: target/cucumber.json |