Skip to content

Commit 888c340

Browse files
committed
expose DESIRED_ARDUINO_CLI_VERSION
1 parent 09a3eaf commit 888c340

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Symlink tests for `Host`
1515
- Add documentation on how to use Arduino CI with GitHub Actions
1616
- Allow tests to run on GitHub without external set up, via GitHub Actions (Windows, Linux, MacOS)
17+
- Exposed desired CLI backend version as `ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION`
1718

1819
### Changed
1920
- Arduino backend is now `arduino-cli` version `0.13.0`

lib/arduino_ci/arduino_installation.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
require "arduino_ci/arduino_downloader_linux"
66
require "arduino_ci/arduino_downloader_windows" if ArduinoCI::Host.os == :windows
77

8-
DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze
98

109
module ArduinoCI
1110

@@ -14,6 +13,8 @@ class ArduinoInstallationError < StandardError; end
1413
# Manage the OS-specific install location of Arduino
1514
class ArduinoInstallation
1615

16+
DESIRED_ARDUINO_CLI_VERSION = "0.13.0".freeze
17+
1718
class << self
1819

1920
# attempt to find a workable Arduino executable across platforms

spec/arduino_installation_spec.rb

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
RSpec.describe ArduinoCI::ArduinoInstallation do
44
next if skip_ruby_tests
55

6+
context "constants" do
7+
it "Exposes desired backend version" do
8+
expect(ArduinoCI::ArduinoInstallation::DESIRED_ARDUINO_CLI_VERSION).to eq("0.13.0")
9+
end
10+
end
11+
612
context "autolocate" do
713
it "doesn't fail" do
814
ArduinoCI::ArduinoInstallation.autolocate

0 commit comments

Comments
 (0)