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

Fix CI integration test #34

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Conversation

dd137
Copy link

@dd137 dd137 commented Oct 12, 2023

The automated integration tests should now pass on Github actions.

As hypothesized, the problem was that npm run test-integration launches Electron and therefore needs a display to work properly, but the CI workflow runs on a headless Linux OS. Running the test-integration script through Xvfb (a virtual X11 display server) solved the issue.

I also made other minor improvements to the test workflow, see commit message details.

Related commit: Meteor and Node should now be 2.6.1 and 14 everywhere (it was still 2.6 and 12 in a few places).

dd137 added 2 commits October 12, 2023 11:48
`npm run test-integration` uses Electron and therefore needs a display to work properly.

Other changes:
- Add a build step to make sure `npm run build` is always ran (dist/ could change without a package-lock.json change, I think)
- Cache: add ~/.npm and fix /tmp/.__tmp_int (test-meteor-desktop path)
- Trigger action for all pull requests, not only those against master
- Update actions/checkout to v4
- Renaming
@StorytellerCZ StorytellerCZ merged commit a04e419 into fix/bug-12 Oct 12, 2023
3 checks passed
@StorytellerCZ StorytellerCZ deleted the fix/ci-integration-test branch October 12, 2023 11:27
Copy link
Member

@StorytellerCZ StorytellerCZ left a comment

Choose a reason for hiding this comment

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

Amazing work! Thanks a lot!

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.

2 participants