Skip to content

Commit 9292ed1

Browse files
committed
update oats
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent c57106d commit 9292ed1

File tree

4 files changed

+16
-30
lines changed

4 files changed

+16
-30
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,16 @@ jobs:
1010
acceptance-tests:
1111
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: actions/checkout@v4
14-
- name: Check out oats
13+
- name: Check out
1514
uses: actions/checkout@v4
15+
- uses: jdx/mise-action@v2
1616
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
17+
experimental: 'true' # to get lock file support and for go backend
3418
- name: Run acceptance tests
3519
run: ./scripts/run-acceptance-tests.sh
3620
- name: upload log file
3721
uses: actions/upload-artifact@v4
3822
if: failure()
3923
with:
40-
name: OATS logs
41-
path: oats/yaml/build/**/*.log
24+
name: OATs logs
25+
path: build/**/*.log

mise.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[tools."go:github.com/grafana/oats"]
2+
version = "0.2.0"
3+
backend = "go:github.com/grafana/oats"
4+
15
[tools.java]
26
version = "temurin-17.0.13+11"
37
backend = "core:java"

mise.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
PROTO_GENERATION = "true"
33

44
[tools]
5+
"go:github.com/grafana/oats" = "0.2.0"
56
java = "temurin-17.0.13+11"
67
protoc = "latest"
78

@@ -26,3 +27,9 @@ run = "./mvnw test -DskipTests=true -Dspotless.check.skip=true -Dcoverage.skip=t
2627
description = "run all tests"
2728
run = "./mvnw verify"
2829

30+
[tasks.acceptance-test]
31+
description = "Run OATs acceptance tests"
32+
run = "oats -timeout 5m examples/"
33+
34+
35+

scripts/run-acceptance-tests.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)