Closed uozuAho closed 4 years ago
With the step:
- name: e2e tests uses: GabrielBB/xvfb-action@v1.2 with: working-directory: subdir run: npm run e2e
The executed command in the log is /usr/bin/xvfb-run --auto-servernum npm run e2e subdir
/usr/bin/xvfb-run --auto-servernum npm run e2e subdir
I think the problem may be https://github.com/GabrielBB/xvfb-action/blob/e9adbdcd44108e54f12d6a49a373a074385b8512/index.js#L41 : I think it needs to be exec.exec(command, [], {cwd: directory}). See https://www.npmjs.com/package/@actions/exec
exec.exec(command, [], {cwd: directory})
With the step:
The executed command in the log is
/usr/bin/xvfb-run --auto-servernum npm run e2e subdir
I think the problem may be https://github.com/GabrielBB/xvfb-action/blob/e9adbdcd44108e54f12d6a49a373a074385b8512/index.js#L41 : I think it needs to be
exec.exec(command, [], {cwd: directory})
. See https://www.npmjs.com/package/@actions/exec