Skip to content

GitHub action to run builds#706

Merged
jonahgraham merged 1 commit into
eclipse-lsp4j:mainfrom
mickaelistria:github-actions
Mar 13, 2023
Merged

GitHub action to run builds#706
jonahgraham merged 1 commit into
eclipse-lsp4j:mainfrom
mickaelistria:github-actions

Conversation

@mickaelistria

Copy link
Copy Markdown
Contributor

No description provided.

@eclipse-lsp4j-bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

@jonahgraham jonahgraham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mickaelistria for starting this off. If you or others are interested in getting this complete here are my thoughts:

Perhaps you can show these working on your fork so that we can test the changes before we merge the PR?

There are also some additional steps that need to be done to check the PR, you can see current PR configuration in https://ci.eclipse.org/lsp4j/job/lsp4j-github-pullrequests/configure

Specifically needs:

  • gradle publish and flags -PignoreTestFailures=true --refresh-dependencies --continue
  • mvn -f releng/pom.xml --batch-mode --update-snapshots clean install
  • collecting and reporting test results

Comment thread .github/workflows/validate.yml Outdated
- name: Set up JDK 17 ☕
uses: actions/setup-java@v3
with:
java-version: 17

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java version should match what project uses, or at least a Java 8 (or 11, depending on state of #707) needs to be available too IIUC.

Comment thread .github/workflows/validate.yml Outdated
- main
push:
branches:
- main

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why limit the branches? I have seen projects do both. We initially did for CDT, but every release I have to keep adding new branches to this list.

@jonahgraham jonahgraham mentioned this pull request Mar 13, 2023
@mickaelistria

Copy link
Copy Markdown
Contributor Author

gradle publish and flags -PignoreTestFailures=true --refresh-dependencies --continue
mvn -f releng/pom.xml --batch-mode --update-snapshots clean install
collecting and reporting test results

For the moment, just a build that answers yes/no is most of what I can offer. I'm not familiar with Gradle and so on to do more. Also if I'm not mistaken, isn't the mvn only intended to do p2 stuff?

@cdietrich

Copy link
Copy Markdown
Contributor

yes mvn just builds the p2 repo. gradle puts test results to https://github.com/eclipse/lsp4j/blob/4bad511eb9471bef9aafc9ad8e7d9c55b6747a25/releng/build.Jenkinsfile#L84

@cdietrich cdietrich added this to the 0.21.0 milestone Mar 13, 2023
@jonahgraham

Copy link
Copy Markdown
Contributor

Lets go with this for now, people can add to it as needed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants