-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from arturictus/bump-dev-ruby
Drop old ruby support and fix coverage publishing
- Loading branch information
Showing
6 changed files
with
18 additions
and
49 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -20,56 +20,13 @@ jobs: | |
cache-version: 1 | ||
- name: Run lint | ||
run: bundle exec rubocop --color | ||
coverage: | ||
runs-on: ubuntu-latest | ||
services: | ||
# Label used to access the service container | ||
redis: | ||
# Docker Hub image | ||
image: redis | ||
# Set health checks to wait until redis has started | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps port 6379 on service container to the host | ||
- 6379:6379 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
cache-version: 1 | ||
- name: Run tests | ||
run: bundle exec rspec --force-color | ||
# - name: Code Coverage Summary | ||
# uses: irongut/[email protected] | ||
# with: | ||
# filename: coverage/coverage.xml | ||
# badge: true | ||
# fail_below_min: true | ||
# format: markdown | ||
# hide_branch_rate: false | ||
# hide_complexity: true | ||
# indicators: true | ||
# output: both | ||
# # thresholds: '60 80' | ||
# - name: Add Coverage PR Comment | ||
# uses: marocchino/sticky-pull-request-comment@v2 | ||
# if: github.event_name == 'pull_request' | ||
# with: | ||
# recreate: true | ||
# path: code-coverage-results.md | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: rubocop | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ["3.2", "3.1", "3.0"] | ||
ruby-version: ["3.3", "3.2", "3.1"] | ||
sidekiq-version: ["~> 6.5", "~> 7"] | ||
with-rackup: [true, false] | ||
# Service containers to run with `runner-job` | ||
|
@@ -103,3 +60,15 @@ jobs: | |
env: | ||
SIDEKIQ_VERSION_RANGE: ${{ matrix.sidekiq-version }} | ||
WITH_RACKUP: ${{ matrix.with-rackup }} | ||
- name: Add coverage report | ||
uses: insightsengineering/coverage-action@v2 | ||
# TODO: Add coverage merging from different test runs | ||
if: ${{ matrix.ruby-version == '3.3' && matrix.sidekiq-version == '~> 7' && matrix.with-rackup == false }} | ||
with: | ||
path: coverage/coverage.xml | ||
publish: true | ||
threshold: 90 | ||
pycobertura-exception-failure: false | ||
diff: true | ||
diff-branch: master | ||
coverage-reduction-failure: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.3 | ||
3.3.2 |
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