-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github-workflows: Run functional tests in Docker via Batect #5031
Conversation
841c54c
to
fd63a84
Compare
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you use 'adopt' e.g. Adopt OpenJDK Hotspot here and not 'temurin' e.g. Eclipse Temurin. Though AdoptOpenJDK is superseded by Temurin or is my understanding wrong? https://adoptopenjdk.net/ links to https://adoptium.net/?variant=openjdk11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm for now aligning with https://github.com/oss-review-toolkit/ort/blob/master/Dockerfile#L31, but please note this is a draft still anyway. I probably can replace "adoptopenjdk" with "eclipse-temurin" later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5068.
d4bbbda
to
8285f29
Compare
8285f29
to
fd990f2
Compare
2edd8b2
to
d7c10ff
Compare
Signed-off-by: Sebastian Schuberth <[email protected]>
This works around `beforeSpec` being executed even if the tests are not matched by a tag, see [1]. [1]: kotest/kotest#1516 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
This way Gradle's console mode can be overriden e.g. when running Batect from within a GitHub workflow. Signed-off-by: Sebastian Schuberth <[email protected]>
This avoids to set up required tools in the GitHub workflow itself, and tests building the `Dockerfile` at the same time. There is currently a single test in `PubFunTest` which fails in Docker for unclear reasons. Postpone fixing the issue until later by not running this single test inside of Docker, but instead outside of Docker. Signed-off-by: Sebastian Schuberth <[email protected]>
c8db8d7
to
2f3fa5e
Compare
Azure pipelines stopped working due to a lack of parallel builds. Signed-off-by: Sebastian Schuberth <[email protected]>
2f3fa5e
to
9ab14d5
Compare
This is to work around [1]. [1]: aboutcode-org/scancode-toolkit#2869 Signed-off-by: Sebastian Schuberth <[email protected]>
71cfd2d
to
b28bf9e
Compare
Signed-off-by: Sebastian Schuberth [email protected]