Repository navigation
84 lines (70 loc) · 1.85 KB
/
Copy pathci.yml
File metadata and controls
84 lines (70 loc) · 1.85 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
inputs:
ref:
description: Git ref to verify
required: false
type: string
permissions:
contents: read
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref || github.sha }}
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 26
cache: maven
- name: Build and test
run: ./mvnw -B clean test
- name: Install to local repo
run: ./mvnw -B install -DskipTests
- name: Test example-consumer
run: ./mvnw -B -f example-consumer/pom.xml clean test
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref || github.sha }}
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 26
cache: maven
- name: Build and test
shell: bash
run: ./mvnw -B clean test
- name: Install to local repo
shell: bash
run: ./mvnw -B install -DskipTests
- name: Test example-consumer
shell: bash
run: ./mvnw -B -f example-consumer/pom.xml clean test
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref || github.sha }}
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 26
cache: maven
- name: Build and test
run: ./mvnw -B clean test
- name: Install to local repo
run: ./mvnw -B install -DskipTests
- name: Test example-consumer
run: ./mvnw -B -f example-consumer/pom.xml clean test