fix: Debugging #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
runTest: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Step 2: Install Arduino CLI | |
- name: Install Arduino CLI | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sudo sh | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin | |
echo "Arduino CLI version:" | |
arduino-cli version # Check the version to confirm installation | |
# Step 3: Install necessary cores | |
- name: Install Arduino cores | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin # Ensure it's in the PATH | |
arduino-cli core update-index | |
arduino-cli core install arduino:avr | |
arduino-cli core install arduino:sam | |
# Debugging Step 1: Check installed cores | |
- name: List installed cores | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin # Ensure it's in the PATH | |
arduino-cli core list | |
# Debugging Step 2: Check OneWire library | |
- name: Check OneWire library installation | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin # Ensure it's in the PATH | |
arduino-cli lib list | grep OneWire | |
# Step 4: Install Ruby and Arduino CI | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install Arduino CI | |
run: | | |
gem install arduino_ci -v 1.5.0 | |
# Step 5: Run Arduino CI Tests | |
- name: Run Arduino CI Tests | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin # Ensure it's in the PATH | |
arduino_ci.rb | |
# Debugging Step 3: Check the working directory and Arduino config | |
- name: Check working directory and Arduino config | |
run: | | |
echo "Working directory: $(pwd)" | |
cat .arduino-ci.yml |