A Danger plugin to detect if there are any updates to your Swift Package Manager dependencies.
It's fast, lightweight, and does not require swift to be installed on the CI where it is run.
Note that version 0.1.0 is the last version to support Ruby 2.7
gem install danger-spm_version_updates
or add the following to your Gemfile:
gem "danger-spm_version_updates"
Just add this to your Dangerfile! Note that it is required to pass the path to your Xcode project.
spm_version_updates.check_for_updates("Example.xcodeproj")
You can also configure custom behaviors:
# Whether to check when dependencies are exact versions or commits, default false
spm_version_updates.check_when_exact = true
# Whether to report versions above the maximum version range, default false
spm_version_updates.report_above_maximum = true
# Whether to report pre-release versions, default false
spm_version_updates.report_pre_releases = true
# A list of repository URLs for packages to ignore entirely
spm_version_updates.ignore_repos = ["https://github.com/pointfreeco/swift-snapshot-testing"]
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rake spec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - Make your changes.
- Harold Martin - harold.martin at gmail
Swift and the Swift logo are trademarks of Apple Inc.
Copyright (c) 2023-2024 Harold Martin
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.