milesburton / Arduino-Temperature-Control-Library

Arduino Temperature Library
https://www.milesburton.com/w/index.php/Dallas_Temperature_Control_Library
969 stars 487 forks source link

set up arduino-CI for the library #182

Closed RobTillaart closed 2 years ago

RobTillaart commented 3 years ago

Please read - https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md

content .arduino-ci.yml

compile:
  # Choosing to run compilation tests on 2 different Arduino platforms
  platforms:
    - uno
    - leonardo
    - due
    - zero
  # Declaring Dependent Arduino Libraries (to be installed via the Arduino Library Manager)
  libraries:
    - "OneWire"

unittest:
  # These dependent libraries will be installed
  libraries:
    - "OneWire"
    # fix the #include "util/crc16" problem here?

content arduino_test_runner.yml

---
name: Arduino CI

on: [push, pull_request]

jobs:
  arduino_ci:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: Arduino-CI/action@master
          #   Arduino-CI/action@v0.1.1

Example content unit_test_01.cpp see - https://github.com/RobTillaart/DS18B20_RT/blob/master/test/unit_test_001.cpp_avr_specific

RobTillaart commented 2 years ago

This one is solved as the PR for the build is merged.