fix: Race condition fix for issue #257 #104
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 | |
arduino-cli version | |
# Step 3: Install necessary cores | |
- name: Install Arduino cores | |
run: | | |
arduino-cli core update-index | |
arduino-cli core install arduino:avr | |
arduino-cli core install arduino:sam | |
arduino-cli core install esp8266:esp8266 | |
arduino-cli core install adafruit:samd | |
# Debugging Step 1: Check installed cores | |
- name: List installed cores | |
run: | | |
arduino-cli core list | |
# Debugging Step 2: Check OneWire library | |
- name: Check OneWire library installation | |
run: | | |
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: | | |
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 |