generated from GoodforGod/java-jmh-template
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (39 loc) · 1.14 KB
/
gradle.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
name: Java CI
on:
push:
branches:
- master
paths:
- '**.java'
- '**.gradle'
pull_request:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
name: Java ${{ matrix.java }} setup
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Code Style
run: ./gradlew spotlessCheck
- name: Build
run: ./gradlew shadowJar
- name: Benchmark [goodforgod-simple-logger]
run: java -jar goodforgod-simple-logger/build/libs/*-all.jar 2>/dev/null
- name: Benchmark [slf4j-simple-logger]
run: java -jar slf4j-simple-logger/build/libs/*-all.jar 2>/dev/null
- name: Benchmark [logback-logger]
run: java -jar logback-logger/build/libs/*-all.jar 2>/dev/null
- name: Benchmark [log4j-logger]
run: java -jar log4j-logger/build/libs/*-all.jar 2>/dev/null
- name: Benchmark [system-logger]
run: java -jar system-logger/build/libs/*-all.jar 2>/dev/null