Skip to content

Yet more fixes to actions #4

Yet more fixes to actions

Yet more fixes to actions #4

Workflow file for this run

# Build and run sub-project 'app' (GitHub action)
name: build run app
on: [push]
permissions:
contents: read
jobs:
build-run-app-Ubuntu-jdk-17:
runs-on: ubuntu-latest
steps:
- run: echo "Branch ${{ github.ref }} of repository ${{ github.repository }}."
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Validation
uses: gradle/actions/wrapper-validation@v4
- name: Assemble the project
run: ./gradlew assemble
- name: Smoke test with Gradle
run: ./gradlew --no-daemon app:run
- name: Clean up Gradle cache
# Remove some files from the Gradle cache, so they aren't cached
# by GitHub Actions. Restoring these files from a GitHub Actions
# cache might cause problems for future builds.
#https://docs.github.com/en/actions/guides/building-and-testing-java-with-gradle#caching-dependencies
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties