For #449 - fix typo #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with Gradle directly | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- 'images/**' | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- 'images/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Builds and tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup JVM | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Restore Gradle caches | |
uses: actions/cache@master | |
env: | |
cache-name: gradle-cache | |
with: | |
path: ~/.gradle | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{hashFiles('**/build.gradle') }} | |
# TODO: See discussion: https://github.com/jeremylong/DependencyCheck/issues/2560#issuecomment-702098748 | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build and test | |
run: ./gradlew build | |
- name: Execute run script | |
run: ./run-with-gradle.sh |