File tree 8 files changed +39
-51
lines changed
prometheus-metrics-exposition-formats
8 files changed +39
-51
lines changed Original file line number Diff line number Diff line change @@ -10,32 +10,14 @@ jobs:
10
10
acceptance-tests :
11
11
runs-on : ubuntu-24.04
12
12
steps :
13
- - uses : actions/checkout@v4
14
- - name : Check out oats
13
+ - name : Check out
15
14
uses : actions/checkout@v4
16
- with :
17
- repository : grafana/oats
18
- ref : v0.1.0
19
- path : oats
20
- - name : Set up JDK
21
- uses : actions/setup-java@v4
22
- with :
23
- java-version : 17
24
- distribution : temurin
25
- cache : ' maven'
26
- - name : Set up Go
27
- uses : actions/setup-go@v5
28
- with :
29
- go-version : ' 1.23'
30
- cache-dependency-path : oats/go.sum
31
- - name : Run the Maven verify phase
32
- run : |
33
- ./mvnw clean install -DskipTests
15
+ - uses : jdx/mise-action@v2
34
16
- name : Run acceptance tests
35
- run : ./scripts/ run- acceptance-tests.sh
17
+ run : mise run acceptance-test
36
18
- name : upload log file
37
19
uses : actions/upload-artifact@v4
38
20
if : failure()
39
21
with :
40
- name : OATS logs
41
- path : oats/yaml/ build/**/*.log
22
+ name : OATs logs
23
+ path : build/**/*.log
Original file line number Diff line number Diff line change 10
10
native-tests :
11
11
runs-on : ubuntu-24.04
12
12
steps :
13
- - uses : actions/checkout@v4
14
- - name : Set up JDK
15
- uses : actions/setup-java@v4
16
- with :
17
- java-version : ' 21'
18
- distribution : graalvm
19
- cache : ' maven'
20
- - name : Run the Maven verify phase
21
- run : ./scripts/run-native-tests.sh
13
+ - name : Check out
14
+ uses : actions/checkout@v4
15
+ - uses : jdx/mise-action@v2
16
+ - name : Run native tests
17
+ run : mise run native-test
Original file line number Diff line number Diff line change 9
9
* .iml
10
10
11
11
target /
12
+ build /
12
13
simpleclient_pushgateway /mockserver.log
13
14
simpleclient_pushgateway /mockserver_request.log
14
15
nb-configuration.xml
Original file line number Diff line number Diff line change
1
+ [tools."go:github.com/grafana/oats"]
2
+ version = "0.2.0"
3
+ backend = "go:github.com/grafana/oats"
4
+
1
5
[tools.java]
2
6
version = "temurin-17.0.13+11"
3
7
backend = "core:java"
Original file line number Diff line number Diff line change 2
2
PROTO_GENERATION = " true"
3
3
4
4
[tools ]
5
+ "go:github.com/grafana/oats" = " 0.2.0"
5
6
java = " temurin-17.0.13+11"
6
7
protoc = " latest"
7
8
8
9
[tasks .ci ]
9
10
description = " CI Build"
10
11
run = [
11
- " ./mvnw clean install" ,
12
- # just to check if javadoc can be generated
13
- " ./mvnw javadoc:javadoc -P javadoc"
12
+ " ./mvnw clean install" ,
13
+ # just to check if javadoc can be generated
14
+ " ./mvnw javadoc:javadoc -P javadoc"
14
15
]
15
16
env = { REQUIRE_PROTO_UP_TO_DATE = " true" }
16
17
@@ -26,3 +27,22 @@ run = "./mvnw test -DskipTests=true -Dspotless.check.skip=true -Dcoverage.skip=t
26
27
description = " run all tests"
27
28
run = " ./mvnw verify"
28
29
30
+ [tasks .build ]
31
+ description = " build all modules wihthout tests"
32
+ run = " ./mvnw clean install -DskipTests"
33
+
34
+ [tasks .acceptance-test ]
35
+ description = " Run OATs acceptance tests"
36
+ depends = " build"
37
+ run = " oats -timeout 5m examples/"
38
+
39
+ [tasks .native-test ]
40
+ depends = " build"
41
+ tools.java = " graalvm-22.3.3+java17"
42
+ run = " ../../mvnw test -PnativeTest"
43
+ dir = " integration-tests/it-spring-boot-smoke-test"
44
+
45
+ [settings ]
46
+ # to get lock file support and for go backend
47
+ experimental = true
48
+
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ if [[ $GENERATED_WITH != "$PROTOBUF_VERSION" ]]; then
41
41
exit 1
42
42
fi
43
43
44
+ git checkout -- ../mise.lock # see https://github.com/jdx/mise/discussions/4782
44
45
STATUS=$( git status --porcelain)
45
46
if [[ ${REQUIRE_PROTO_UP_TO_DATE:- false} == " true" && -n " $STATUS " ]]; then
46
47
echo " Please use https://mise.jdx.dev/ - this will use the version specified in mise.toml"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments