Open ikirker opened 4 years ago
Hey @ikirker 👋
I was having similar issues in getting the GitHub Action to work. Like you mentioned, it seemed to be related to playwright and xvfb. Here is the config that I got to work:
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Install required Linux packages
run: |
sudo apt-get update
sudo apt-get install libgbm-dev
sudo apt-get install xvfb
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Accessibility Audits
run: |
npm install -g @jakepartusch/lumberjack
xvfb-run --auto-servernum lumberjack --url https://google.com
Hopefully this is helpful!
As far as the permission denied error goes, you might not have the permissions setup to globally install the package. A "quick fix" for that would be to use the npx command:
npx @jakepartusch/lumberjack --url https://google.com
I would recommend using the official Playwright GH Action to set up the environment to run web browsers.
I am having the same issue, but I'm just trying to run "lumberjack --url https://google.com" direct at the command line, no xvfb or GH Actions involved
I'm not very experienced at JS or npm, but I thought I'd give this a try. Unfortunately, putting it together in a fresh Vagrant box seemed to give me the error below.
I'm not sure whether this represents a problem with this package, playwright, or maybe how playwright's underlying browser instances are behaving with the virtual framebuffer?
In any case it seemed like it might be useful to post it here.
Steps to reproduce:
Then:
Oh, and, since it might be relevant, here's the error I get with the
npm install
step if I repeat the setup steps but don't use--unsafe-perm=true
: