From 9b550a2458353a2241de67f931b915a3a16c5334 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 8 Nov 2020 21:46:05 -0800 Subject: [PATCH 01/14] Saving GitHub Action for testing. --- .github/workflows/Arduino-CI.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/Arduino-CI.yaml diff --git a/.github/workflows/Arduino-CI.yaml b/.github/workflows/Arduino-CI.yaml new file mode 100644 index 00000000..568f6d2b --- /dev/null +++ b/.github/workflows/Arduino-CI.yaml @@ -0,0 +1,28 @@ +# This is the name of the workflow, visible on GitHub UI +name: Arduino CI + +# Run on a Push or a Pull Request +on: [push, pull_request] + +jobs: + runTest: + runs-on: ubuntu-latest + steps: + # Clone the repo using the `checkout` action + - uses: actions/checkout@v2 + + # Get Ruby + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests + - run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/TestSomething + bundle install + bundle exec arduino_ci_remote.rb From 92d60b9e67a3ffcb15bb4d46ade6be283ee6fa7c Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 8 Nov 2020 21:59:04 -0800 Subject: [PATCH 02/14] Fixing yaml error --- .github/workflows/Arduino-CI.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Arduino-CI.yaml b/.github/workflows/Arduino-CI.yaml index 568f6d2b..6bf102fc 100644 --- a/.github/workflows/Arduino-CI.yaml +++ b/.github/workflows/Arduino-CI.yaml @@ -17,12 +17,13 @@ jobs: ruby-version: 2.6 # Install and run Arduino CI tests - - run: | - g++ -v - bundle install - bundle exec rubocop --version - bundle exec rubocop -D . - bundle exec rspec --backtrace - cd SampleProjects/TestSomething - bundle install - bundle exec arduino_ci_remote.rb + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/TestSomething + bundle install + bundle exec arduino_ci_remote.rb From 0dfb048d71e1d1181af22c38a372faf0296cf80b Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Mon, 9 Nov 2020 20:37:39 -0800 Subject: [PATCH 03/14] Adding documentation about GitHub Actions. --- CHANGELOG.md | 1 + README.md | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c62a27c1..4dc1a5ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added - Add `__AVR__` to defines when compiling +- Add options for automating workflows through GitHub Actions ### Changed - Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci diff --git a/README.md b/README.md index 27b8ce5e..43719921 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,28 @@ test_script: - bundle exec arduino_ci_remote.rb ``` +#### GitHub Actions + +GitHub Actions allows you to automate your workflows directly in GitHub. +No additional steps are needed. +Just create a YAML file with the information below in your repo under the `.github/workflows/` directory. + +```yaml +on: [push, pull_request] +jobs: + runTest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + - run: | + bundle install + bundle exec arduino_ci_remote.rb +``` + + ## Known Problems * The Arduino library is not fully mocked. From 23744553a2b655e75912e4ade47703f7cdb66361 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Tue, 10 Nov 2020 10:21:42 -0800 Subject: [PATCH 04/14] Testing running Windows and MacOS --- .github/workflows/Arduino-CI.yaml | 6 +++++- CHANGELOG.md | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Arduino-CI.yaml b/.github/workflows/Arduino-CI.yaml index 6bf102fc..e25cb886 100644 --- a/.github/workflows/Arduino-CI.yaml +++ b/.github/workflows/Arduino-CI.yaml @@ -6,7 +6,11 @@ on: [push, pull_request] jobs: runTest: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [windows, ubuntu, macos] + runs-on: ${{ matrix.os }}-latest steps: # Clone the repo using the `checkout` action - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc1a5ba..bad8324d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added - Add `__AVR__` to defines when compiling -- Add options for automating workflows through GitHub Actions +- Add documentation on how to use Arduino CI with GitHub Actions +- Allow tests to run locally on GitHub with out external set up with GitHub Actions (for all os environments) ### Changed - Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci From 9a828d9d128af227a648cf3636756a91c1ba0c65 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Tue, 10 Nov 2020 15:21:06 -0800 Subject: [PATCH 05/14] Updated language for all OS testing in GitHub Actions --- .github/workflows/Arduino-CI.yaml | 1 - CHANGELOG.md | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Arduino-CI.yaml b/.github/workflows/Arduino-CI.yaml index e25cb886..1f09b4f0 100644 --- a/.github/workflows/Arduino-CI.yaml +++ b/.github/workflows/Arduino-CI.yaml @@ -7,7 +7,6 @@ on: [push, pull_request] jobs: runTest: strategy: - fail-fast: false matrix: os: [windows, ubuntu, macos] runs-on: ${{ matrix.os }}-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 891e7dc0..8d895280 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,12 +9,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Add `__AVR__` to defines when compiling - Add documentation on how to use Arduino CI with GitHub Actions -- Allow tests to run locally on GitHub with out external set up with GitHub Actions (for all os environments) +- Allow tests to run on GitHub without external set up with GitHub Actions (for Windows, Ubuntu, and MacOS) - Add support for `diditalPinToPort()`, `digitalPinToBitMask()`, and `portOutputRegister()` ### Changed - Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci - Revise math macros to avoid name clashes +- Moved to Arduino IDE version 1.8.13 ### Deprecated - Deprecated `arduino_ci_remote.rb` in favor of `arduino_ci.rb` From f9aa1476968ebdbc8c0f45f468a9f1578d913400 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 12:55:31 -0800 Subject: [PATCH 06/14] Updated based on PR feedback --- .github/workflows/Arduino-CI.yaml | 32 ------------------ .github/workflows/linux.yaml | 47 ++++++++++++++++++++++++++ .github/workflows/windows.yaml | 47 ++++++++++++++++++++++++++ CHANGELOG.md | 4 --- README.md | 10 +++--- lib/arduino_ci/arduino_installation.rb | 2 +- 6 files changed, 100 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/Arduino-CI.yaml create mode 100644 .github/workflows/linux.yaml create mode 100644 .github/workflows/windows.yaml diff --git a/.github/workflows/Arduino-CI.yaml b/.github/workflows/Arduino-CI.yaml deleted file mode 100644 index 1f09b4f0..00000000 --- a/.github/workflows/Arduino-CI.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# This is the name of the workflow, visible on GitHub UI -name: Arduino CI - -# Run on a Push or a Pull Request -on: [push, pull_request] - -jobs: - runTest: - strategy: - matrix: - os: [windows, ubuntu, macos] - runs-on: ${{ matrix.os }}-latest - steps: - # Clone the repo using the `checkout` action - - uses: actions/checkout@v2 - - # Get Ruby - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6 - - # Install and run Arduino CI tests - - name: Build and Execute - run: | - g++ -v - bundle install - bundle exec rubocop --version - bundle exec rubocop -D . - bundle exec rspec --backtrace - cd SampleProjects/TestSomething - bundle install - bundle exec arduino_ci_remote.rb diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml new file mode 100644 index 00000000..df30af27 --- /dev/null +++ b/.github/workflows/linux.yaml @@ -0,0 +1,47 @@ +# This is the name of the workflow, visible on GitHub UI +name: Arduino CI + +# Run on a Push or a Pull Request +on: [push, pull_request] + +jobs: + TestSomething: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/TestSomething + bundle install + bundle exec arduino_ci.rb + + Network: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for Network + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/NetworkLib + ./scripts/install.sh + bundle install + bundle exec arduino_ci.rb diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml new file mode 100644 index 00000000..012e9eb1 --- /dev/null +++ b/.github/workflows/windows.yaml @@ -0,0 +1,47 @@ +# This is the name of the workflow, visible on GitHub UI +name: Arduino CI + +# Run on a Push or a Pull Request +on: [push, pull_request] + +jobs: + TestSomething: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/TestSomething + bundle install + bundle exec arduino_ci.rb + + Network: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for Network + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + cd SampleProjects/NetworkLib + ./scripts/install.sh + bundle install + bundle exec arduino_ci.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index e724ece8..0edf1f1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,9 +24,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci - Revise math macros to avoid name clashes -<<<<<<< HEAD -- Moved to Arduino IDE version 1.8.13 -======= - `CppLibrary` functions returning C++ header or code files now respect the 1.0/1.5 library specification - Mocks of built-in macros made more accurate - NUM_SERIAL_PORTS can now be set explicitly @@ -36,7 +33,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Don't define `ostream& operator<<(nullptr_t)` if already defined by Apple - `CppLibrary.in_tests_dir?` no longer produces an error if there is no tests directory - The definition of the `_SFR_IO8` macro no longer produces errors about rvalues ->>>>>>> 2c20e0e61e3e15dac8fcdb754ba89f80046454ce ### Deprecated - `arduino_ci_remote.rb` CLI switch `--skip-compilation` diff --git a/README.md b/README.md index 5e5c7ad1..4d626cfa 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ You want your Arduino library to be automatically built and tested every time so `arduino_ci` is a cross-platform build/test system, consisting of a Ruby gem and a series of C++ mocks. It enables tests to be run both locally and as part of a CI service like Travis or Appveyor. Any OS that can run the Arduino IDE can run `arduino_ci`. -Platform | CI Status ----------|:--------- -OSX | [![OSX Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) -Linux | [![Linux Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) -Windows | [![Windows Build status](https://ci.appveyor.com/api/projects/status/abynv8xd75m26qo9/branch/master?svg=true)](https://ci.appveyor.com/project/ianfixes/arduino-ci) +   | Linux | macOS | Windows +-------------------|:------|:------|:-------- +**AppVeyor** | | | [![Windows Build status](https://ci.appveyor.com/api/projects/status/abynv8xd75m26qo9/branch/master?svg=true)](https://ci.appveyor.com/project/ianfixes/arduino-ci) +**GitHub Actions** | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/linux/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=linux) | | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/windows/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=winows) +**Travis CI** | [![Linux Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) | [![OSX Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) | ## Comparison to Other Arduino Testing Tools diff --git a/lib/arduino_ci/arduino_installation.rb b/lib/arduino_ci/arduino_installation.rb index 938e8987..9ca32ada 100644 --- a/lib/arduino_ci/arduino_installation.rb +++ b/lib/arduino_ci/arduino_installation.rb @@ -9,7 +9,7 @@ require "arduino_ci/arduino_downloader_windows" if ArduinoCI::Host.os == :windows -DESIRED_ARDUINO_IDE_VERSION = "1.8.13".freeze +DESIRED_ARDUINO_IDE_VERSION = "1.8.6".freeze module ArduinoCI From 456bbf3c66eac3a7783fb53971a46d3f74a46e4e Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 12:57:25 -0800 Subject: [PATCH 07/14] Fixing workflow names --- .github/workflows/linux.yaml | 2 +- .github/workflows/windows.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index df30af27..91b5a597 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -1,5 +1,5 @@ # This is the name of the workflow, visible on GitHub UI -name: Arduino CI +name: linux # Run on a Push or a Pull Request on: [push, pull_request] diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 012e9eb1..a7978001 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -1,5 +1,5 @@ # This is the name of the workflow, visible on GitHub UI -name: Arduino CI +name: windows # Run on a Push or a Pull Request on: [push, pull_request] From be09e1312e01bea71f58b027a51ba613d2e16a5b Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 13:08:20 -0800 Subject: [PATCH 08/14] Making install executable. --- SampleProjects/NetworkLib/scripts/install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 SampleProjects/NetworkLib/scripts/install.sh diff --git a/SampleProjects/NetworkLib/scripts/install.sh b/SampleProjects/NetworkLib/scripts/install.sh old mode 100644 new mode 100755 From f6140aa5e667f391611d075b6d5f8e51ab1c2f80 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 14:57:24 -0800 Subject: [PATCH 09/14] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d626cfa..9a53dc22 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You want your Arduino library to be automatically built and tested every time so   | Linux | macOS | Windows -------------------|:------|:------|:-------- **AppVeyor** | | | [![Windows Build status](https://ci.appveyor.com/api/projects/status/abynv8xd75m26qo9/branch/master?svg=true)](https://ci.appveyor.com/project/ianfixes/arduino-ci) -**GitHub Actions** | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/linux/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=linux) | | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/windows/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=winows) +**GitHub Actions** | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/linux/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=linux) | | [![Arduino CI](https://github.com/Arduino-CI/arduino_ci/workflows/windows/badge.svg)](https://github.com/Arduino-CI/arduino_ci/actions?workflow=windows) **Travis CI** | [![Linux Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=linux&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) | [![OSX Build Status](http://badges.herokuapp.com/travis/Arduino-CI/arduino_ci?env=BADGE=osx&label=build&branch=master)](https://travis-ci.org/Arduino-CI/arduino_ci) | From 27e1037885929921384e6f4fc5eca29f1add961d Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 14:58:48 -0800 Subject: [PATCH 10/14] Updating changelog --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0edf1f1c..c989701c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added -- Add `__AVR__` to defines when compiling - `arduino_ci_remote.rb` CLI switch `--skip-examples-compilation` - Add support for `diditalPinToPort()`, `digitalPinToBitMask()`, and `portOutputRegister()` - `CppLibrary.header_files` to find header files @@ -19,7 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Support for mock EEPROM (but only if board supports it) - Add stubs for `Client.h`, `IPAddress.h`, `Printable.h`, `Server.h`, and `Udp.h` - Add documentation on how to use Arduino CI with GitHub Actions -- Allow tests to run on GitHub without external set up with GitHub Actions (for Windows, Ubuntu, and MacOS) +- Allow tests to run on GitHub without external set up with GitHub Actions (for Windows and Ubuntu) ### Changed - Move repository from https://github.com/ianfixes/arduino_ci to https://github.com/Arduino-CI/arduino_ci From 3b5b96d6f59913d8bc752152071eda379e332198 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 17:36:25 -0800 Subject: [PATCH 11/14] Fixing warning on windows --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..4282322a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text eol=lf From 0ca009d1ff3224c43b6d3df7e83b4c39409b373b Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 17:37:58 -0800 Subject: [PATCH 12/14] Simplifying the network test --- .github/workflows/linux.yaml | 3 --- .github/workflows/windows.yaml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 91b5a597..253bcf99 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -38,9 +38,6 @@ jobs: run: | g++ -v bundle install - bundle exec rubocop --version - bundle exec rubocop -D . - bundle exec rspec --backtrace cd SampleProjects/NetworkLib ./scripts/install.sh bundle install diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index a7978001..cd12c5b3 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -38,9 +38,6 @@ jobs: run: | g++ -v bundle install - bundle exec rubocop --version - bundle exec rubocop -D . - bundle exec rspec --backtrace cd SampleProjects/NetworkLib ./scripts/install.sh bundle install From 62d86deedf4a292aa59e83c8c9ad7e36d87aa39d Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 18:47:23 -0800 Subject: [PATCH 13/14] Working branch merge. (#1) * Clean up and merge. --- .gitattributes | 2 -- .github/workflows/linux.yaml | 22 ++++++++++++++++---- .github/workflows/windows.yaml | 22 ++++++++++++++++---- SampleProjects/NetworkLib/scripts/install.sh | 2 +- 4 files changed, 37 insertions(+), 11 deletions(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 4282322a..00000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text eol=lf diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 253bcf99..15d7bf83 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -5,7 +5,7 @@ name: linux on: [push, pull_request] jobs: - TestSomething: + rubocop: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -13,7 +13,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for TestSomething + # Install and run Arduino CI tests for rubocop - name: Build and Execute run: | g++ -v @@ -21,11 +21,25 @@ jobs: bundle exec rubocop --version bundle exec rubocop -D . bundle exec rspec --backtrace + + TestSomething: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install cd SampleProjects/TestSomething bundle install bundle exec arduino_ci.rb - Network: + NetworkLib: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -33,7 +47,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for Network + # Install and run Arduino CI tests for NetworkLib - name: Build and Execute run: | g++ -v diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index cd12c5b3..5eb4410a 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -5,7 +5,7 @@ name: windows on: [push, pull_request] jobs: - TestSomething: + rubocop: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -13,7 +13,7 @@ jobs: with: ruby-version: 2.6 - # Install and run Arduino CI tests for TestSomething + # Install and run Arduino CI tests for rubocop - name: Build and Execute run: | g++ -v @@ -21,11 +21,25 @@ jobs: bundle exec rubocop --version bundle exec rubocop -D . bundle exec rspec --backtrace + + TestSomething: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for TestSomething + - name: Build and Execute + run: | + g++ -v + bundle install cd SampleProjects/TestSomething bundle install bundle exec arduino_ci.rb - Network: + NetworkLib: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -39,6 +53,6 @@ jobs: g++ -v bundle install cd SampleProjects/NetworkLib - ./scripts/install.sh + bash -x ./scripts/install.sh bundle install bundle exec arduino_ci.rb diff --git a/SampleProjects/NetworkLib/scripts/install.sh b/SampleProjects/NetworkLib/scripts/install.sh index b4e2dd40..54b8d4e0 100755 --- a/SampleProjects/NetworkLib/scripts/install.sh +++ b/SampleProjects/NetworkLib/scripts/install.sh @@ -4,5 +4,5 @@ # then get the custom one we want to use for testing cd $(bundle exec arduino_library_location.rb) if [ ! -d ./Ethernet ] ; then - git clone https://github.com/Arduino-CI/Ethernet.git + git clone --depth 1 https://github.com/Arduino-CI/Ethernet.git fi From a98631a3a12d15d7068a7e6aae669af834463b17 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 19:00:20 -0800 Subject: [PATCH 14/14] Removed unused parameter from TravisCI --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 36067457..3fd5c346 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ -sudo: false language: ruby os: