Modernize CI: pinned actions, ruby 3.0–4.0 matrix, trusted publishing - #52
Merged
Conversation
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.
Modernizes CI, replacing the broken
build.yml(ruby 2.6–3.1 matrix on removed ubuntu-18.04 runners).Changes
.github/workflows/ci.yml: test matrix ruby 3.0–4.0 onubuntu-latest+windows-latest(bundle exec rake --trace), plusaudit(bundler-audit + ruby-audit),zizmor(pinned v0.6.3), andlint(RuboCop) jobs. Coveralls step dropped — no simplecov in this repo..github/workflows/build.yml: the old broken workflow.Gemfile: addedbundler-audit ~> 0.9.3,ruby_audit ~> 3.1(ruby >= 3.1 only), andrubocopfor the lint job. Existing.rubocop.ymlkept as-is..github/workflows/gem_push.yml: trusted-publishing release workflow (rubygems/release-gem v1.4.1) triggered on published releases, gated by the newreleaseenvironment (pcai as required reviewer). RubyGems trusted-publisher registration is still needed before the first release..github/dependabot.yml: weekly GitHub Actions updates.Bug_report.md,Feature_request.md) andPULL_REQUEST_TEMPLATE.md, adapted for winrm-elevated.RELEASING.md: release process adapted to this repo (VERSIONfile,winrm-elevated.gemspec,changelog.md).CHANGELOG.mdcreated — the repo already keepschangelog.md(lowercase), whichRELEASING.mdreferences.required_ruby_versionuntouched.Verification
winrm-elevatedbefore the first trusted-publishing release (requires an OTP step by the gem owner)