-
Notifications
You must be signed in to change notification settings - Fork 1.1k
55 lines (52 loc) · 1.38 KB
/
ci.yml
File metadata and controls
55 lines (52 loc) · 1.38 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
name: CI
on:
pull_request: {}
push: { branches: [ main ] }
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- { name: "default", javaVersion: 8 }
- { name: "default", javaVersion: 17 }
- { name: "default", javaVersion: 21 }
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: ${{matrix.javaVersion}}
distribution: temurin
cache: maven
- name: Configure Docker
id: setup_docker
uses: docker/setup-docker-action@v4
with:
channel: stable
- name: Build with Maven
env:
DOCKER_HOST: ${{steps.setup_docker.outputs.sock}}
run: ./mvnw --no-transfer-progress verify
tcp:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 8
distribution: temurin
cache: maven
- name: Configure Docker
id: setup_docker
uses: docker/setup-docker-action@v4
with:
channel: stable
tcp-port: 2375
- name: Build with Maven
env:
DOCKER_HOST: ${{steps.setup_docker.outputs.tcp}}
run: ./mvnw --no-transfer-progress verify