This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f97791
commit 7be5c13
Showing
16 changed files
with
1,161 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Acceptance Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- labeled | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
acceptance-tests: | ||
# see https://stackoverflow.com/questions/62325286/run-github-actions-when-pull-requests-have-a-specific-label | ||
if: contains(github.event.pull_request.labels.*.name, 'oats') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
- name: Check out oats | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: grafana/oats | ||
ref: d2e59f9857d898f9d0f606714de3b22ee9d61804 | ||
path: oats | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
cache-dependency-path: oats/go.sum | ||
- name: Validate Gradle wrapper | ||
uses: gradle/[email protected] | ||
- name: Setup Gradle and run build | ||
uses: gradle/[email protected] | ||
working-directory: integrationTests/oats | ||
run: ./gradlew build | ||
- name: Run acceptance tests | ||
run: ./scripts/run-acceptance-tests.sh | ||
- name: upload log file | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: docker-compose.log | ||
path: oats/yaml/build/**/output.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '3.2.0' | ||
id 'io.spring.dependency-management' version '1.1.4' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter-actuator' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation rootProject | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.9' | ||
|
||
services: | ||
application: | ||
image: eclipse-temurin:17-jre | ||
volumes: | ||
- ./build/libs:/libs | ||
environment: | ||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318" | ||
OTEL_METRIC_EXPORT_INTERVAL: "5000" # so we don't have to wait 60s for metrics | ||
command: | ||
- /bin/bash | ||
- -c | ||
- java -jar /libs/*.jar | ||
ports: | ||
- 8080:8080 | ||
|
Oops, something went wrong.