Add CI and a trusted-publishing release workflow - #14
Merged
Merged
Conversation
CI runs the specs on pushes to main and on pull requests. Release fires on a vX.Y.Z tag: it runs the specs, then builds and pushes the gem through RubyGems trusted publishing, so no API key is stored in this repository. BUNDLE_FROZEN is off in both jobs. setup-ruby's bundler-cache installs in frozen mode, which fails whenever the lockfile's RUBY VERSION does not match the runner's patch level -- that is what has been failing idrac's CI on the dependabot PRs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/ci.yml(specs on push and PR) and.github/workflows/release.yml(on av*tag: specs, then build and push to RubyGems via trusted publishing / OIDC — no API key in the repo).BUNDLE_FROZEN: "false"in both jobs: setup-ruby'sbundler-cacheinstalls frozen, which fails when the lockfile'sRUBY VERSIONdoes not match the runner's patch level. That is the failure on idrac's dependabot PRs.Needs the matching trusted publisher registered on rubygems.org for this gem (repository
buildio/radfish, workflowrelease.yml).