Skip to content

Commit

Permalink
Merge pull request #3 from ihmcrobotics/github-workflow
Browse files Browse the repository at this point in the history
Add github workflow
  • Loading branch information
ds58 authored Feb 29, 2024
2 parents be9dfe5 + 45422b8 commit e436085
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Java CI with Gradle

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch:

permissions:
checks: write
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
id: setup-gradle
with:
gradle-version: 8.5

- name: Execute Gradle test
run: gradle test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
detailed_summary: true

0 comments on commit e436085

Please sign in to comment.