-
Notifications
You must be signed in to change notification settings - Fork 7
Run unit tests on push #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
58f378a
Run unit tests on push
smortex edecd71
Fix CI
smortex 0860397
Display bundled environment to help diagnose issues
smortex c373110
Do not set version on Certificate Sign Requests
smortex b2e3700
Use friendly names instead of OID for Extended Key Usage
smortex 9d39910
Workaround jruby-openssl bug
smortex 9ac9a73
Fix updating extentions in CRL
smortex baff86e
Remove windows unit testing
smortex bc1c1df
Remove jruby unit testing
smortex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| --- | ||
| name: Unit tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| # minimal permissions | ||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| CI: true | ||
|
|
||
| jobs: | ||
| linux_unit_tests: | ||
| name: Ruby version | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ruby: | ||
| - '2.7' | ||
| - '3.0' | ||
| - '3.2' | ||
| - '3.3' | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Checkout current PR | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Rspec checks | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| bundler-cache: true | ||
|
|
||
| - name: Display bundle environment | ||
| run: | | ||
| bundle env | ||
|
|
||
| - run: bundle exec rake spec_random |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --format documentation | ||
| --color | ||
| --require spec_helper |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| require "bundler/gem_tasks" | ||
| require "rspec/core/rake_task" | ||
|
|
||
| RSpec::Core::RakeTask.new(:spec) | ||
| Dir.glob(File.join('tasks/**/*.rake')).each { |file| load file } | ||
|
|
||
| task :default => :spec | ||
| task default: :spec |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| begin | ||
| require 'rspec/core/rake_task' | ||
|
|
||
| desc 'Run rspec test in sequential order' | ||
| RSpec::Core::RakeTask.new(:spec) | ||
|
|
||
| desc 'Run rspec test in random order' | ||
| RSpec::Core::RakeTask.new(:spec_random) do |t| | ||
| t.rspec_opts = '--order random' | ||
| end | ||
| rescue LoadError | ||
| puts 'Could not load rspec' | ||
| end |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the Impact of this Change? I am a bit lost Here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jruby-openssl produce warnings for non-critical issues it detects. In this case, it complain that we set a version in a CSR while this parameter is ignored:
https://github.com/jruby/jruby-openssl/blob/de0d96c189c29e4f7668e3943d678696e7d7e3c3/src/main/java/org/jruby/ext/openssl/X509Request.java#L253 (current warning)
https://github.com/jruby/jruby-openssl/blame/01e12c17698bef4d7671a795d30e1c368d02b848/src/main/java/org/jruby/ext/openssl/X509Request.java#L227 (initial introduction)