Add GitHub Actions CI workflow (build, lint, headless test, package, SonarQube) - #20
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/ci.yml, the repo's first CI workflow. Triggers: push tomain,pull_request,workflow_dispatch. It usesconcurrencyto cancel superseded runs andpermissions: contents: read.actionlint1.7.12 (with shellcheck) passes on it.buildmvn -B -ntp clean test-compilesrc/test, so test-compile is the real build.lintmvn validate test-compile -Dmaven.compiler.showWarnings=true -Dmaven.compiler.showDeprecation=truetest(needs build)mvn -B -ntp testagainstsrc/test/resources/suites/testng.xml--headlessalready set inBaseTest, the runner's installed Chrome, and a WebDriverManager-resolved chromedriver. Uploads thesurefire-reportsandextent-reportartifacts (ExtentReports HTML with base64-embedded screenshots, pluslogfile.log).package(default branch only, needs all)mvn -DskipTests package jar:test-jar-tests.jar. Nothing is published or deployed.sonarqube(needs build)sonar-maven-plugin:5.1.0.4751:sonarSONAR_TOKENsecret is set: the token is exposed via jobenvand each step is gated withif: env.SONAR_TOKEN != ''.SONAR_HOST_URLis read from a repo variable, falling back to a secret.Toolchain: Temurin JDK 17 with
setup-javaMaven caching. The POM still compiles at-source/-target 1.8, but Selenium 4.25 and WebDriverManager 5.9 need a Java 11+ runtime, so a JDK 8 runner can't run the suite. The same JDK 17 build was checked locally.Pre-existing failure (
continue-on-error: trueon themvn teststep only):mvn testfails on unmodifiedmain, so the step fails but the job stays green. Both tests hit live third-party sites:FaceBookLoginTestfails by design: the#emaillocator no longer exists and the test has a hardcoded failing assert.GoogleSearchTestpassed on the GitHub runner. It failed locally, where Google served a consent/bot page, so it may be flaky.Reports are still uploaded with
if: always().Email: the workflow never sends mail.
mail.sendmail=falseintest.properties, and a guard step fails the job if that line changes.Left out: any deploy or artifact publishing, since no credentials are available, and changes to the tests or application code.
Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/aa90b232e0b44f27b21d79e7fb2c6149
Open in Devin Desktop: https://partner-workshops.devinenterprise.com/desktop/session/aa90b232e0b44f27b21d79e7fb2c6149?variant=devin
Requested by: @mbatchelor81