-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to GitHub Actions * Use GitHub Actions for CI * Update Coveralls integration: generate lcov report with SimpleCov and send it after the test suite using coveralls GitHub Actions plugin * Update and cleanup RSpec config * Cleanup Rakefile * Remove active_model dependency (certificate_authority was fixed) PS: GH Actions syntax is ugly. Should we switch to Cirlce CI or GitLab CI? XD Resolves: #633 * Disable SSL related specs Specs are failing due to some misconfiguration caused by new OpenSSL. TODO: #627 * Remove windows and macos from test matrix We were not testing those on Travis-CI, thus to simplify migration I've deicded to disable those. Once everything is fixed and stabilized we will add those too. * Bump min version of CA and rspec Just to make sure we're using expected ones * Make stubbed client in spec more predictable - use stub_const - consistently normalize URIs * Add OpenSSL requirement details for jRuby /cc @tarcieri Probably we should just add dependency on gem itself? * Revert "Add OpenSSL requirement details for jRuby" This reverts commit f8dfb38. * Fix jRuby regression introduced in #632 jRuby is using outdated openssl gem bundled in, which don't have validate_hostname getter on SSLContext. * Fix jRuby coverage abilities
- Loading branch information
Showing
13 changed files
with
204 additions
and
126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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,83 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
ruby: [ ruby-2.4, ruby-2.5, ruby-2.6, ruby-2.7, jruby-9.2.11 ] | ||
os: [ ubuntu-latest ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}- | ||
|
||
- name: bundle install | ||
run: | | ||
bundle config set path "vendor/bundle" | ||
bundle config set without "development" | ||
bundle install --jobs 4 | ||
- name: bundle exec rspec | ||
env: | ||
JRUBY_OPTS: --debug | ||
run: bundle exec rspec --format progress --force-colour | ||
|
||
- name: Prepare Coveralls test coverage report | ||
uses: coverallsapp/github-action@v1.1.2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
flag-name: "${{ matrix.ruby }} @${{ matrix.os }}" | ||
path-to-lcov: ./coverage/lcov/lcov.info | ||
parallel: true | ||
|
||
coveralls: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finalize Coveralls test coverage report | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.4 | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-lint-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: bundle-use-ruby-lint- | ||
|
||
- name: bundle install | ||
run: | | ||
bundle config set path "vendor/bundle" | ||
bundle config set without "development" | ||
bundle install --jobs 4 | ||
- run: bundle exec rubocop --color | ||
- run: bundle exec rake verify_measurements |
This file contains 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,19 +1,15 @@ | ||
*.gem | ||
.bundle | ||
.config | ||
.rvmrc | ||
.ruby-version | ||
.yardoc | ||
Gemfile.lock | ||
InstalledFiles | ||
_yardoc | ||
coverage | ||
|
||
.bundle | ||
.ruby-version | ||
doc | ||
lib/bundler/man | ||
measurement | ||
coverage | ||
pkg | ||
rdoc | ||
spec/reports | ||
test/tmp | ||
test/version_tmp | ||
spec/examples.txt | ||
tmp | ||
Gemfile.lock |
This file contains 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,5 +1 @@ | ||
--backtrace | ||
--color | ||
--format=documentation | ||
--order random | ||
--require spec_helper |
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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
Oops, something went wrong.