Skip to content

Creating a GitHub Action to run automated tests #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Working branch merge. (#1)
* Clean up and merge.
  • Loading branch information
prestoncarman authored Nov 16, 2020
commit 62d86deedf4a292aa59e83c8c9ad7e36d87aa39d
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

22 changes: 18 additions & 4 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,49 @@ name: linux
on: [push, pull_request]

jobs:
TestSomething:
rubocop:
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
# 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: 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
- uses: ruby/setup-ruby@v1
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
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,41 @@ name: windows
on: [push, pull_request]

jobs:
TestSomething:
rubocop:
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
# 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: 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
Expand All @@ -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
2 changes: 1 addition & 1 deletion SampleProjects/NetworkLib/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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