forked from jlavallee/JMeter-Rabbit-AMQP
-
Notifications
You must be signed in to change notification settings - Fork 23
66 lines (63 loc) · 1.6 KB
/
maven.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
60
61
62
63
64
65
66
name: CI
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.md'
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- '**/*.md'
- 'docs/**'
workflow_dispatch: # on-demand/manual triggering
jobs:
compile:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java: [ 8, 11, 17, 21 ]
distro: [ 'zulu' ]
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} (${{ matrix.distro }} @ ${{ matrix.os }}) compile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }} (${{ matrix.distro }} @ ${{ matrix.os }})
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distro }}
java-version: ${{ matrix.java }}
- name: Compile
run: mvn -B compile
build:
runs-on: ubuntu-latest
needs: compile
name: Build project
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
distribution: zulu
java-package: jdk
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven version
run: mvn -v
- name: Build with Maven
run: mvn -B package
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: jmeter-amqp-plugin
path: |
target/*.jar
!target/original-*.jar