Skip to content

Commit d89f0ba

Browse files
author
James Foster
authored
Add GitHub Action to run tests (#2)
* Saving GitHub Action for testing. * Fixing yaml error Co-authored-by: Preston Carman <[email protected]>
1 parent 23ca483 commit d89f0ba

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/Arduino-CI.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is the name of the workflow, visible on GitHub UI
2+
name: Arduino CI
3+
4+
# Run on a Push or a Pull Request
5+
on: [push, pull_request]
6+
7+
jobs:
8+
runTest:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Clone the repo using the `checkout` action
12+
- uses: actions/checkout@v2
13+
14+
# Get Ruby
15+
- uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 2.6
18+
19+
# Install and run Arduino CI tests
20+
- name: Build and Execute
21+
run: |
22+
g++ -v
23+
bundle install
24+
bundle exec rubocop --version
25+
bundle exec rubocop -D .
26+
bundle exec rspec --backtrace
27+
cd SampleProjects/TestSomething
28+
bundle install
29+
bundle exec arduino_ci_remote.rb

0 commit comments

Comments
 (0)