fix: Debugging #121
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 | |
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 | |
arduino-cli core list | |
# Step 4: Install OneWire library | |
- name: Install OneWire library | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin | |
arduino-cli lib install OneWire | |
# Debugging Step 2: Check installed libraries | |
- name: Check OneWire library | |
run: | | |
export PATH=$PATH:/home/runner/work/Arduino-Temperature-Control-Library/Arduino-Temperature-Control-Library/bin | |
arduino-cli lib list | |
# Step 5: 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 6: 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 | |
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 |