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

Address warnings from CI build (update github actions) #108

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

lavanyaj3
Copy link
Contributor

Address warnings from CI build (update github actions)
Fixes: #106

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]>
@fbricon
Copy link
Collaborator

fbricon commented Oct 24, 2024

Please don't remove the comments

Comment on lines 49 to 56
# 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
Copy link
Collaborator

Choose a reason for hiding this comment

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

npm test

- name: Run Test on macOS
if: runner.os == 'macOS'
Copy link
Collaborator

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure.

Copy link
Contributor Author

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

@fbricon fbricon merged commit 2c398e5 into redhat-developer:main Oct 24, 2024
2 checks passed
@fbricon
Copy link
Collaborator

fbricon commented Oct 24, 2024

thanks @lavanyaj3

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.

Address warnings from CI build (update github actions)
2 participants