Hey guys,
I wonder if this is a problem where I don't understand act or if it still has an issue.
My problem is that I try to run a workflow locally that runs just fine on Github.
Here is my workflow:
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup-chromedriver
uses: nanasess/[email protected]
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: 2.6
- name: Install System Dependencies
run: sudo apt-get install libsqlite3-dev
- name: Install Ruby Bundles
run: bundle install
- name: Run tests
run: bundle exec rspec --format progress --format RspecJunitFormatter --out tmp/test-results/rspec.xml
It basically just runs my tests and there it needs Chromedriver which I use from nanasess/[email protected].
Now it runs just fine on Github but with act it gives me:
[Ruby/test] ๐ Start image=node:12.6-buster-slim
[Ruby/test] ๐ณ docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Ruby/test] ๐ณ docker cp src=/Users/tim/Workspace/hopla/. dst=/github/workspace
[Ruby/test] โญ Run actions/checkout@v2
[Ruby/test] โ
Success - actions/checkout@v2
[Ruby/test] โญ Run setup-chromedriver
[Ruby/test] โ git clone 'https://github.com/nanasess/setup-chromedriver' # ref=v1.0.1
[Ruby/test] ๐ณ docker cp src=/Users/tim/.cache/act/[email protected] dst=/actions/
| internal/modules/cjs/loader.js:628
| throw err;
| ^
|
| Error: Cannot find module '@actions/core'
| Require stack:
| - /actions/[email protected]/lib/setup-chromedriver.js
| at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
| at Function.Module._load (internal/modules/cjs/loader.js:527:27)
| at Module.require (internal/modules/cjs/loader.js:683:19)
| at require (internal/modules/cjs/helpers.js:16:16)
| at Object.<anonymous> (/actions/[email protected]/lib/setup-chromedriver.js:19:27)
| at Module._compile (internal/modules/cjs/loader.js:776:30)
| at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
| at Module.load (internal/modules/cjs/loader.js:643:32)
| at Function.Module._load (internal/modules/cjs/loader.js:556:12)
| at Function.Module.runMain (internal/modules/cjs/loader.js:839:10) {
| code: 'MODULE_NOT_FOUND',
| requireStack: [
| '/actions/[email protected]/lib/setup-chromedriver.js'
| ]
| }
[Ruby/test] โ Failure - setup-chromedriver
Error: exit with `FAILURE`: 1
Seems to be a simple require inside setup-chromedriver where I don't get why it fails?!
I'm seeing something similar:
[Skylight Rust Agent/Test] โ git clone 'https://github.com/actions/cache' # ref=v1
[Skylight Rust Agent/Test] ๐ณ docker cp src=/Users/peterwagenet/.cache/act/actions-cache@v1 dst=/actions/
| internal/modules/cjs/loader.js:960
| throw err;
| ^
|
| Error: Cannot find module '/actions/actions-cache@v1/dist/restore/index.js'
| at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
| at Function.Module._load (internal/modules/cjs/loader.js:840:27)
| at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
| at internal/main/run_main_module.js:18:47 {
| code: 'MODULE_NOT_FOUND',
| requireStack: []
| }
@wagenet The Cannot find module '/actions/actions-cache@v1/dist/restore/index.js' error is probably related to #193 given that they gitignore their dist/ directory.
Most helpful comment
I'm seeing something similar: