Repository navigation
65 lines (59 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
65 lines (59 loc) · 1.61 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
64
65
name: CI
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
name: Build on JDK ${{ matrix.java }}, ${{ matrix.os }} and Vault ${{ matrix.vault }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
java:
- 11
vault:
- 1.16.3
- 1.17.6
- 1.18.5
- 1.19.5
- 1.20.4
- 1.21.4
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.1.0
- 2.1.1
- 2.1.2
- 2.2.0
- latest
os:
- ubuntu-latest
# TODO: We disable Windows because testcontainers doesn't support runs in containers
# (see https://github.com/testcontainers/testcontainers-java/pull/1780)
# - windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
env:
VAULT_VERSION: ${{ matrix.vault }}
TESTCONTAINERS_RYUK_DISABLED: true
- uses: actions/upload-artifact@v4 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
overwrite: true
name: test-results-${{ matrix.os }}-${{ matrix.vault }}
path: |
target/surefire-reports/TEST-*.xml
target/failsafe-reports/TEST-*.xml