-
Notifications
You must be signed in to change notification settings - Fork 8
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
Address warnings from CI build (update github actions) #108
Conversation
Signed-off-by: lavanyaj3 <[email protected]>
This reverts commit 6bb4fff.
Run Test step is split into two parts: one for Linux (using Xvfb) and another for macOS (which does not need Xvfb) Signed-off-by: lavanyaj3 <[email protected]>
Please don't remove the comments |
.github/workflows/build.yaml
Outdated
# Install Xvfb | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb | ||
# Start Xvfb | ||
Xvfb :99 -screen 0 1920x1080x24 & | ||
export DISPLAY=:99 | ||
# Run your tests | ||
npm test |
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.
whole setup is unnecessary, as xvfb is available on ubuntu runners now.
See:
.github/workflows/build.yaml
Outdated
npm test | ||
|
||
- name: Run Test on macOS | ||
if: runner.os == 'macOS' |
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.
runner.os != 'Linux'
we'll need to run tests on windows (but that's another issue)
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.
sure.
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.
Run tests
- name: Run Tests
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
xvfb-run npm test
else
npm test
fi
Made the changes accordingly
Signed-off-by: lavanyaj3 <[email protected]>
thanks @lavanyaj3 |
Address warnings from CI build (update github actions)
Fixes: #106