Skip to content
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

ci: added a build running the unit tests #296

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

gtoison
Copy link
Contributor

@gtoison gtoison commented Jul 27, 2022

  • Run the build using multiple versions of Java
  • Cache the maven dependencies
  • Install GTK2 for SWT unit tests
  • Install Xvfb for Swing unit tests

- Run the build using multiple versions of Java
- Cache the maven dependencies
- Install GTK2 for SWT unit tests
- Install Xvfb for Swing unit tests
Comment on lines +20 to +30
- name: apt-get update
run: sudo apt-get update
- name: Install SWT dependencies
# Eclipse/SWT 3.6 requires GTK+ 2.4.1 and its dependencies
run: sudo apt-get install -y gtk2.0 libxtst6
- name: Build and Test
# We need a virtual X11 for the Eclipse unit tests
uses: GabrielBB/xvfb-action@v1
with:
run: |
mvn -B test
Copy link
Member

Choose a reason for hiding this comment

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

i'm wondering if it cannot be replaced by

    - name: Build with Maven
      run: xvfb-run -a mvn -B verify

I did something like that a while ago but do not remember the details https://github.com/camel-tooling/camel-dap-client-eclipse/blob/a6f2bda0cd8bacbaa5a6594c08d50ffa7d4d4870/.github/workflows/ci.yml#L41

But maybe it is a more complex case for Infinitest. So just sharing in case you have not tried.

@apupier apupier merged commit 6089936 into infinitest:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants