Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Granizo committed Aug 27, 2024
1 parent e1eb789 commit 92b8e97
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/ci.yml
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

0 comments on commit 92b8e97

Please sign in to comment.