-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (48 loc) · 1.2 KB
/
pull-requests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build and Run Tests
on: [pull_request]
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
java: [8, 11, 17]
runs-on: ubuntu-latest
steps:
- name: Check Out Sources
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.4
- name: Build
run: ./gradlew compileTest
# Tests that do not require a database connection.
- name: Misc tests
run: ./gradlew ci --tests MiscTests
tests:
needs: build
name: Tests
strategy:
fail-fast: false
matrix:
version: [previous-lts, lts, latest, ci]
uses: ./.github/workflows/tests.yml
with:
esdb_version: ${{ matrix.version }}
plugins-tests:
needs: build
name: Plugins Tests
strategy:
fail-fast: false
matrix:
version: [24.2.0-jammy]
uses: ./.github/workflows/plugins-tests.yml
with:
esdb_version: ${{ matrix.version }}
secrets: inherit