Skip to content

fix: Fettling

fix: Fettling #205

name: Arduino CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create required directories
run: |
mkdir -p $GITHUB_WORKSPACE/libraries
mkdir -p $GITHUB_WORKSPACE/.arduino15
mkdir -p $GITHUB_WORKSPACE/Arduino
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Configure Arduino CLI and install cores
run: |
arduino-cli config init
arduino-cli config set library.enable_unsafe_install true
# Add ESP8266 board URL and update
arduino-cli config add board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
arduino-cli core update-index
# Install cores
arduino-cli core install arduino:avr
arduino-cli core install esp8266:esp8266
# Debug: List installed cores and libraries
echo "Installed cores:"
arduino-cli core list
echo "Installed libraries:"
arduino-cli lib list
# Show the contents of the ESP8266 directory
echo "ESP8266 directory contents:"
ls -R ~/.arduino15/packages/esp8266/
- name: Install OneWire library
run: |
arduino-cli lib install OneWire
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
- name: Install bundler
run: |
gem install bundler
- name: Install dependencies
run: |
bundle install
- name: Run tests
run: |
bundle exec arduino_ci_remote.rb