-
-
Notifications
You must be signed in to change notification settings - Fork 24
63 lines (61 loc) · 2.14 KB
/
run-tests.yml
File metadata and controls
63 lines (61 loc) · 2.14 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# SPDX-FileCopyrightText: Copyright 2022-2026 Mark Rotteveel
# SPDX-License-Identifier: LGPL-2.1-or-later
name: run-tests
on: [push,pull_request]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
java:
- version: 17
javaInstall: 17
buildProfile: 17
testProfile: 17
- version: 17-test-21
javaInstall: |
17
21
buildProfile: 17
testProfile: 21
- version: 17-test-25
javaInstall: |
17
25
buildProfile: 17
testProfile: 25
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: juarezr/firebirdsql-github-action@v2.2.0
with:
version: '5.0.3'
firebird_root_password: 'masterkey'
firebird_conf: 'WireCrypt=Enabled,AuthServer=Srp256;Srp;Legacy_Auth;Srp224;Srp384;Srp512,UserManager=Srp;Legacy_UserManager'
event_port: 3051
- uses: actions/checkout@v6
- name: Set up Java ${{ matrix.java.version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java.javaInstall }}
distribution: 'temurin'
- name: Setup Gradle
# TODO: Review implications of license change before upgrading to version 6 or higher
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Build with Gradle
run: ./gradlew test -PbuildProfile=${{ matrix.java.buildProfile }} -PtestProfile=${{ matrix.java.testProfile }} -Ptest.dbondocker=true -Ptest.db.dir=/var/lib/firebird/data -Ptest.event.available=true
- name: Store Report Artifact
uses: actions/upload-artifact@v7
if: always()
with:
name: report-artifacts-${{ matrix.java.version }}
path: build/reports
compression-level: 9
retention-days: 7