-
-
Notifications
You must be signed in to change notification settings - Fork 38
42 lines (33 loc) · 950 Bytes
/
arduino_ci.yml
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
name: Arduino CI
on:
push:
branches:
- master
paths:
- "src/**"
- "test/**/*.cpp"
- '.github/workflows/arduino_ci.yml'
pull_request:
paths:
- 'src/**'
- "test/**/*.cpp"
- '.github/workflows/arduino_ci.yml'
jobs:
arduino-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: Run Unit Tests
run: |
bundle install
bundle exec ensure_arduino_installation.rb
git clone https://github.com/johnrickman/LiquidCrystal_I2C.git
git clone https://github.com/arduino-libraries/LiquidCrystal.git
mv LiquidCrystal_I2C LiquidCrystal $(bundle exec arduino_library_location.rb)
bundle exec arduino_ci.rb --skip-examples-compilation