Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 authored Sep 10, 2024
1 parent 3f26a9d commit 4823203
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions .github/workflows/gradle-test.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,16 @@
name: Automated Tests
name: Gradle test

on:
workflow_dispatch:
push:
branches: [ "develop" ]
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@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run Tests
run: gradle test

- name: Print Test Results
run: gradle printJUnitXMLs

- 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
require_passed_tests: true
annotate_only: true
gradle-test:
uses: ihmcrobotics/ihmc-actions/.github/workflows/gradle-test.yml@main

0 comments on commit 4823203

Please sign in to comment.