Skip to content

Bump actions/setup-java from 3 to 4 #182

Bump actions/setup-java from 3 to 4

Bump actions/setup-java from 3 to 4 #182

Workflow file for this run

name: Build FitNesse
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build slimJar sourcesJar javadocJar
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: libs
path: build/libs
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: build/test-results/test/*.xml