-
Notifications
You must be signed in to change notification settings - Fork 1k
57 lines (49 loc) · 1.36 KB
/
test.yaml
File metadata and controls
57 lines (49 loc) · 1.36 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
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: cimg/openjdk:22.0
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Restore Maven cache
uses: actions/cache@v4
with:
path: ~/.m2
key: dependency-cache-${{ hashFiles('pom.xml') }}
restore-keys: |
dependency-cache-
- name: Download Maven dependencies
run: mvn dependency:go-offline
test:
runs-on: ubuntu-latest
container: cimg/openjdk:22.0
needs: build
strategy:
matrix:
mysql-version: [5.5, 5.7, 8.4, mariadb]
env:
JAVA_TOOL_OPTIONS: -Xmx250m
MYSQL_VERSION: ${{ matrix.mysql-version }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Restore Maven cache
uses: actions/cache@v4
with:
path: ~/.m2
key: dependency-cache-${{ hashFiles('pom.xml') }}
restore-keys: |
dependency-cache-
- name: Run Maven tests
run: mvn test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Upload test log
if: always()
uses: actions/upload-artifact@v4
with:
name: test-log-${{ matrix.mysql-version }}
path: test.log