Skip to content

Commit 627ad77

Browse files
committed
Update the Github CI actions
* update the OSes which are tested - use the `latestst` versions - add a check against `windows` * update the Ruby versions which are tested (added 4.0) * remove the Code Climate coverage reporting, because the service has been deprecated. Also removed the links from the README * restructure how the tests are executed - execute the entire test suite, including linting and dependency checking (i.e., `test` job) - if `test` passes then re-execute the specs in a test matrix to cover all the Ruby and OS compbinations
1 parent 32588bf commit 627ad77

2 files changed

Lines changed: 14 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@ on:
55
- cron: '0 1 * * 0' # every Sunday at 1am
66
jobs:
77
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
bundler-cache: true
14+
- run: bundle exec rake
15+
env:
16+
CUCUMBER_PUBLISH_TOKEN: ${{ secrets.CUCUMBER_PUBLISH_TOKEN }}
17+
# TODO: Consider a code climate replacement for reporting results.
18+
matrix_tests:
19+
needs: [ test ]
820
strategy:
921
fail-fast: false
1022
matrix:
11-
os: [ubuntu-20.04, macos-13]
12-
ruby: [3.1, 3.2, 3.3, 3.4, head, jruby, jruby-head]
23+
os: [ubuntu-latest, macos-latest, windows-latest]
24+
ruby: [3.1, 3.2, 3.3, 3.4, 4.0, head, jruby, jruby-head]
1325
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || endsWith(matrix.ruby, 'jruby') }}
1426
runs-on: ${{ matrix.os }}
1527
steps:
@@ -19,21 +31,3 @@ jobs:
1931
ruby-version: ${{ matrix.ruby }}
2032
bundler-cache: true
2133
- run: bundle exec rake spec
22-
coverage:
23-
needs: [ test ]
24-
name: coverage
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v4
28-
- uses: ruby/setup-ruby@v1
29-
with:
30-
bundler-cache: true
31-
- run: bundle exec rake
32-
env:
33-
CUCUMBER_PUBLISH_TOKEN: ${{ secrets.CUCUMBER_PUBLISH_TOKEN }}
34-
- uses: paambaati/codeclimate-action@v9.0.0
35-
env:
36-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
37-
with:
38-
coverageLocations: |
39-
${{ github.workspace }}/coverage/lcov/*.lcov:lcov

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
[![Gem Version](https://badge.fury.io/rb/rspec-timecop.svg)](http://badge.fury.io/rb/rspec-timecop)
44
[![Build Status](https://github.com/sugarcrm/rspec-timecop/actions/workflows/ci.yml/badge.svg)](https://github.com/sugarcrm/rspec-timecop/actions/workflows/ci.yml)
5-
[![Code Climate](https://codeclimate.com/github/sugarcrm/rspec-timecop/badges/gpa.svg)](https://codeclimate.com/github/sugarcrm/rspec-timecop)
6-
[![Test Coverage](https://codeclimate.com/github/sugarcrm/rspec-timecop/badges/coverage.svg)](https://codeclimate.com/github/sugarcrm/rspec-timecop/coverage)
75
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE.txt)
86

97
[![RubyDoc](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://rubydoc.info/gems/rspec-timecop)

0 commit comments

Comments
 (0)