Skip to content

Commit d39e24e

Browse files
committed
Use CI resources more efficiently
1 parent a1139a2 commit d39e24e

File tree

4 files changed

+18
-110
lines changed

4 files changed

+18
-110
lines changed

.github/workflows/linux.yaml

+5-36
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,23 @@
11
# This is the name of the workflow, visible on GitHub UI
22
name: linux
33

4-
# Run on a Push or a Pull Request
5-
on: [push, pull_request]
4+
on: [pull_request]
65

76
jobs:
8-
rspec:
7+
"unittest_lint_sampleproject":
98
runs-on: ubuntu-latest
109
steps:
1110
- uses: actions/checkout@v2
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
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
1815
run: |
1916
g++ -v
20-
bundle install
21-
bundle exec rspec --backtrace
22-
23-
rubocop:
24-
runs-on: ubuntu-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: |
3417
bundle install
3518
bundle exec rubocop --version
3619
bundle exec rubocop -D .
37-
38-
TestSomething:
39-
runs-on: ubuntu-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
5021
cd SampleProjects/TestSomething
5122
bundle install
5223
bundle exec arduino_ci.rb
@@ -58,9 +29,7 @@ jobs:
5829
- uses: ruby/setup-ruby@v1
5930
with:
6031
ruby-version: 2.6
61-
62-
# Install and run Arduino CI tests for NetworkLib
63-
- name: Build and Execute
32+
- name: Test NetworkLib from scratch
6433
run: |
6534
g++ -v
6635
cd SampleProjects/NetworkLib

.github/workflows/macos.yaml

+5-36
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,23 @@
11
# This is the name of the workflow, visible on GitHub UI
22
name: macos
33

4-
# Run on a Push or a Pull Request
5-
on: [push, pull_request]
4+
on: [pull_request]
65

76
jobs:
8-
rspec:
7+
"unittest_lint_sampleproject":
98
runs-on: macos-latest
109
steps:
1110
- uses: actions/checkout@v2
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
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
1815
run: |
1916
g++ -v
20-
bundle install
21-
bundle exec rspec --backtrace
22-
23-
rubocop:
24-
runs-on: macos-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: |
3417
bundle install
3518
bundle exec rubocop --version
3619
bundle exec rubocop -D .
37-
38-
TestSomething:
39-
runs-on: macos-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
5021
cd SampleProjects/TestSomething
5122
bundle install
5223
bundle exec arduino_ci.rb
@@ -58,9 +29,7 @@ jobs:
5829
- uses: ruby/setup-ruby@v1
5930
with:
6031
ruby-version: 2.6
61-
62-
# Install and run Arduino CI tests for NetworkLib
63-
- name: Build and Execute
32+
- name: Test NetworkLib from scratch
6433
run: |
6534
g++ -v
6635
cd SampleProjects/NetworkLib

.github/workflows/windows.yaml

+7-38
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,35 @@
11
# This is the name of the workflow, visible on GitHub UI
22
name: windows
33

4-
# Run on a Push or a Pull Request
5-
on: [push, pull_request]
4+
on: [pull_request]
65

76
jobs:
8-
rspec:
9-
runs-on: windows-latest
7+
"unittest_lint_sampleproject":
8+
runs-on: ubuntu-latest
109
steps:
1110
- uses: actions/checkout@v2
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
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
1815
run: |
1916
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: |
3417
bundle install
3518
bundle exec rubocop --version
3619
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
5021
cd SampleProjects/TestSomething
5122
bundle install
5223
bundle exec arduino_ci.rb
5324
5425
NetworkLib:
55-
runs-on: windows-latest
26+
runs-on: ubuntu-latest
5627
steps:
5728
- uses: actions/checkout@v2
5829
- uses: ruby/setup-ruby@v1
5930
with:
6031
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
6433
run: |
6534
g++ -v
6635
cd SampleProjects/NetworkLib

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Added
1010

1111
### Changed
12+
- Conserve CI testing minutes by grouping CI into fewer runs
1213

1314
### Deprecated
1415

0 commit comments

Comments
 (0)