#746 Add GitHub action for compliance checking using reuse #610
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
# SPDX-FileCopyrightText: Copyright 2022-2024 Mark Rotteveel | |
# SPDX-License-Identifier: LGPL-2.1-or-later | |
name: run-tests | |
on: [push,pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: juarezr/[email protected] | |
with: | |
version: 'v4.0' | |
isc_password: 'masterkey' | |
enable_legacy_client_auth: 'true' | |
- uses: actions/checkout@v4 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
- name: Build with Gradle | |
run: ./gradlew test -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 |