forked from Arduino-CI/arduino_ci
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (68 loc) · 1.79 KB
/
linux.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This is the name of the workflow, visible on GitHub UI
name: linux
on: [push, pull_request]
jobs:
"rubocop":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check style
run: |
g++ -v
bundle install
bundle exec rubocop --version
bundle exec rubocop -D .
"rspec-linux":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check functionality
run: |
g++ -v
bundle install
bundle exec rspec
"TestSomething":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check usage - TestSomething
run: |
g++ -v
bundle install
cd SampleProjects/TestSomething
bundle install
bundle exec arduino_ci.rb --help
bundle exec arduino_ci.rb
NetworkLib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check usage - Test NetworkLib from scratch
run: |
g++ -v
cd SampleProjects/NetworkLib
bundle install
bundle exec ensure_arduino_installation.rb
sh ./scripts/install.sh
bundle exec arduino_ci.rb
SharedLibrary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check usage - Test SharedLibrary should fail
run: ./SampleProjects/SharedLibrary/test.sh