-
-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (40 loc) · 1.44 KB
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@d9336dac04dea2507a617466bc058a3def92b18b
- name: Build with Gradle
run: ./gradlew test -PbuildProfile=java11 -Ptest.dbondocker=true -Ptest.db.dir=/firebird/data
- name: Cleanup 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.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
rm -fr ~/.gradle/caches/*/plugin-resolution/
find ~/.gradle/caches/ -name "*.lock" -type f -delete
- name: Store Report Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: report-artifacts
path: build/reports
compression-level: 9
retention-days: 7