Replace manual caching and wrapper-validation with setup-gradle action #522
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: run-tests | |
on: [push,pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: juarezr/firebirdsql-github-action@v1.2.0 | |
with: | |
version: 'v4.0' | |
isc_password: 'masterkey' | |
enable_legacy_client_auth: 'true' | |
- uses: actions/checkout@v4 | |
- name: Set up Java 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 | |
- name: Build with Gradle | |
run: ./gradlew test -PbuildProfile=java11 -Ptest.dbondocker=true -Ptest.db.dir=/firebird/data | |
- name: Store Report Artifact | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: report-artifacts | |
path: build/reports | |
compression-level: 9 | |
retention-days: 7 |