From 9b550a2458353a2241de67f931b915a3a16c5334 Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 8 Nov 2020 21:46:05 -0800 Subject: [PATCH 1/2] 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 2/2] 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