|
1 | 1 | # This is the name of the workflow, visible on GitHub UI |
2 | 2 | name: windows |
3 | 3 |
|
4 | | -# Run on a Push or a Pull Request |
5 | | -on: [push, pull_request] |
| 4 | +on: [pull_request] |
6 | 5 |
|
7 | 6 | jobs: |
8 | | - rspec: |
9 | | - runs-on: windows-latest |
| 7 | + "unittest_lint_sampleproject": |
| 8 | + runs-on: ubuntu-latest |
10 | 9 | steps: |
11 | 10 | - uses: actions/checkout@v2 |
12 | 11 | - uses: ruby/setup-ruby@v1 |
13 | 12 | with: |
14 | 13 | ruby-version: 2.6 |
15 | | - |
16 | | - # Install and run Arduino CI tests for rspec |
17 | | - - name: Build and Execute |
| 14 | + - name: Check style, funcionality, and usage |
18 | 15 | run: | |
19 | 16 | g++ -v |
20 | | - bundle install |
21 | | - bundle exec rspec --backtrace |
22 | | -
|
23 | | - rubocop: |
24 | | - runs-on: windows-latest |
25 | | - steps: |
26 | | - - uses: actions/checkout@v2 |
27 | | - - uses: ruby/setup-ruby@v1 |
28 | | - with: |
29 | | - ruby-version: 2.6 |
30 | | - |
31 | | - # Install and run Arduino CI tests for rubocop |
32 | | - - name: Build and Execute |
33 | | - run: | |
34 | 17 | bundle install |
35 | 18 | bundle exec rubocop --version |
36 | 19 | bundle exec rubocop -D . |
37 | | -
|
38 | | - TestSomething: |
39 | | - runs-on: windows-latest |
40 | | - steps: |
41 | | - - uses: actions/checkout@v2 |
42 | | - - uses: ruby/setup-ruby@v1 |
43 | | - with: |
44 | | - ruby-version: 2.6 |
45 | | - |
46 | | - # Install and run Arduino CI tests for TestSomething |
47 | | - - name: Build and Execute |
48 | | - run: | |
49 | | - g++ -v |
| 20 | + bundle exec rspec --backtrace |
50 | 21 | cd SampleProjects/TestSomething |
51 | 22 | bundle install |
52 | 23 | bundle exec arduino_ci.rb |
53 | 24 |
|
54 | 25 | NetworkLib: |
55 | | - runs-on: windows-latest |
| 26 | + runs-on: ubuntu-latest |
56 | 27 | steps: |
57 | 28 | - uses: actions/checkout@v2 |
58 | 29 | - uses: ruby/setup-ruby@v1 |
59 | 30 | with: |
60 | 31 | ruby-version: 2.6 |
61 | | - |
62 | | - # Install and run Arduino CI tests for Network |
63 | | - - name: Build and Execute |
| 32 | + - name: Test NetworkLib from scratch |
64 | 33 | run: | |
65 | 34 | g++ -v |
66 | 35 | cd SampleProjects/NetworkLib |
|
0 commit comments