GithubHelp home page GithubHelp logo

coactions / setup-xvfb Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 8.0 1.06 MB

Run your tests headlessly by enabling xvfb

Home Page: https://github.com/marketplace/actions/setup-xvfb

License: MIT License

Shell 18.66% JavaScript 81.34%
github-action xvfb

setup-xvfb's People

Contributors

akuli avatar bobbyg603 avatar dependabot[bot] avatar gabrielbb avatar jjshoe avatar s1hofmann avatar slavek-kucera avatar ssbarnea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

setup-xvfb's Issues

Multiple commands

I tried to do:

run: npm install ... ; bash script.sh

to no avail,

I also did:

run: |
   npm install
   bash script.sh

which also failed.

The latter returned this:

Command: npm install -g terminalizer
/usr/bin/xvfb-run --auto-servernum npm install -g terminalizer
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 260 packages in 9s

32 packages are looking for funding
  run `npm fund` for details
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Command: cd docs/os/Animations
/usr/bin/xvfb-run --auto-servernum cd docs/os/Animations
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Command: bash create.sh
/usr/bin/xvfb-run --auto-servernum bash create.sh
bash: create.sh: No such file or directory
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Error: The process '/usr/bin/xvfb-run' failed with exit code 127

which I don't know if it is my problem or not? It looks weird though.

cleanup.sh is not present in dist

While running this action it's always throwing warning
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1.0.1/dist/cleanup.sh: No such file or directory

as cleanup.sh in the build process is actually not copied to dist folder

Please upgrade to Node 20

Builds using this action produce output like
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
It would be nice to not see it.

Support Bash shell and environment variables

Looking through the docs I wasn't sure if this is possible:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        
      ...
      
      - name: Build and Test
        uses: coactions/setup-xvfb@v1
        env:
          BUILD_ID: "..."
          BUILD_TYPE: "..."
          BUILD_LABEL: "..."
        with:
          shell: bash
          run: whatever

Is env as well as shell: bash supported? Especially for Windows this is important because PowerShell does not work in my case .

pytestqt: Aborted (core dumped) : cleanup.sh: No such file or directory

Hi, I am trying use this setup-xvfb action for a Python Qt project I am developing and I get "Aborted (core dumped)". I reduced my setup to a minimal example, see https://github.com/hakonhagland/pytest-xvfb-test, and this github action job log:

https://github.com/hakonhagland/pytest-xvfb-test/actions/runs/5626878877/job/15248519431

[...]
 File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/runpy.py", line 86 in _run_code
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/runpy.py", line 196 in _run_module_as_main

Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, PyQt6.QtTest (total: 4)
Aborted (core dumped)
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Error: The process '/usr/bin/xvfb-run' failed with exit code 134

The workflow step that triggers the issue is like this:

  - name: Run unit tests
        uses: coactions/setup-xvfb@v1
        with:
          run: |
            poetry run python -m pytest

Any ideas what could be wrong?

Allow to run without sudo

Hi guys,

This issue was previously raised here. I was wondering whether it was solved somehow. Do you guys have any plans for this?

Cheers,
Ilan.

Mutter as an alternative to xvfb

When migrating to this action a discussion about mutter as an alternative to xvfb came up:
eclipse-m2e/m2e-core#1344 (comment)

The main reasoning was that mutter would be the preferred way compared to xvfb and xvfb seems to be not as actively maintained as mutter. Can you share your assessment about that?

Would it be interesting for you to provide a similar action like this one, but for mutter? For example setup-mutter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.