Skip to content

Bump versions

Bump versions #221

name: Build with Gradle using Batect
on:
push:
paths-ignore:
- '*.md'
- 'images/**'
pull_request:
paths-ignore:
- '*.md'
- 'images/**'
workflow_dispatch:
jobs:
build:
name: Builds and tests for Gradle
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@master
- name: Validate Batect wrapper scripts
uses: batect/[email protected]
- name: Restore Batect caches
uses: actions/cache@master
env:
cache-name: batect-cache
with:
path: ~/.batect
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/batect.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Manage Batect telemetry
run: ./batect --permanently-enable-telemetry
- 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: ./batect build-with-gradle
- name: Execute run script
run: ./batect -o quiet run-with-gradle
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: jars
path: build/libs/modern-java-practices*.jar