From a6cfb2486b8bb84d9a592ad4f1b8d3e4a220febd Mon Sep 17 00:00:00 2001 From: Preston Carman Date: Sun, 15 Nov 2020 20:46:24 -0800 Subject: [PATCH] Adding automated test on based on macOS Catalina 10.15 --- .github/workflows/macos.yaml | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/macos.yaml diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml new file mode 100644 index 00000000..b827d8fe --- /dev/null +++ b/.github/workflows/macos.yaml @@ -0,0 +1,58 @@ +# This is the name of the workflow, visible on GitHub UI +name: macos + +# Run on a Push or a Pull Request +on: [push, pull_request] + +jobs: + rubocop: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for rubocop + - name: Build and Execute + run: | + g++ -v + bundle install + bundle exec rubocop --version + bundle exec rubocop -D . + bundle exec rspec --backtrace + + TestSomething: + runs-on: macos-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 + + NetworkLib: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + + # Install and run Arduino CI tests for NetworkLib + - name: Build and Execute + run: | + g++ -v + bundle install + cd SampleProjects/NetworkLib + ./scripts/install.sh + bundle install + bundle exec arduino_ci.rb