Skip to content

NoMethodError: undefined method `map' for nil:NilClass #295

Closed
@QuentinN42

Description

@QuentinN42

Running Arduino-CI/[email protected] result in NoMethodError :

I use the default workflow :

name: Arduino_CI

on: [pull_request]

jobs:
  arduino_ci:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: Arduino-CI/[email protected]

And my project is ok for arduino-lint action :

CI-test/
├── CI-test.ino
├── examples
│   └── example.c
├── README.md
└── test
    └── test.c

But I have always this issue :

================================================================================
Beginning the next phase of testing...           Compilation of example sketches
bundler: failed to load command: /action/bundle/ruby/2.6.0/bin/arduino_ci.rb (/action/bundle/ruby/2.6.0/bin/arduino_ci.rb)
NoMethodError: undefined method `map' for nil:NilClass
  /action/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/lib/arduino_ci/cpp_library.rb:135:in `example_sketches'
  /action/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:450:in `perform_example_compilation_tests'
  /action/bundle/ruby/2.6.0/gems/arduino_ci-1.3.0/exe/arduino_ci.rb:536:in `<top (required)>'
  /action/bundle/ruby/2.6.0/bin/arduino_ci.rb:23:in `load'
  /action/bundle/ruby/2.6.0/bin/arduino_ci.rb:23:in `<top (required)>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingci scriptsThe test runner scripts

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions