Skip to content

Commit 5d138b0

Browse files
committed
Simplify setup and use GitHub Actions for CI.
1 parent 13bddf2 commit 5d138b0

File tree

6 files changed

+36
-50
lines changed

6 files changed

+36
-50
lines changed

.circleci/config.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
rspec:
11+
name: Ruby ${{ matrix.ruby }} Specs
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ruby: ["3.1", "3.2", "3.3", "3.4"]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby }}
27+
bundler-cache: true
28+
29+
- name: Run tests
30+
run: bundle exec rspec

Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ You can expect for this gem to produce a `coverage.json` file, located at the `c
1010

1111
Depending on your `SimpleCoV`'s settings you will experiment different outcomes. Particularly depending on which type of coverage are you running `SimpleCov` with:
1212

13-
- If you configure `SimpleCov` to run with `branch` coverage you should expect an output formatted like [sample_with_branch.json](https://github.com/fede-moya/simplecov_json_formatter/blob/master/spec/fixtures/sample_with_branch.json)
14-
- Otherwise you should expect an output formatted like [sample.json](https://github.com/fede-moya/simplecov_json_formatter/blob/master/spec/fixtures/sample.json)
13+
- If you configure `SimpleCov` to run with `branch` coverage you should expect an output formatted like [sample_with_branch.json](https://github.com/codeclimate-community/simplecov_json_formatter/blob/master/spec/fixtures/sample_with_branch.json)
14+
- Otherwise you should expect an output formatted like [sample.json](https://github.com/codeclimate-community/simplecov_json_formatter/blob/master/spec/fixtures/sample.json)
1515

1616
## Development
1717

18-
We encourage you to use docker for common operations like running tests, or debugging your code. Running `make sh` will start a new container instance based on the `Dockerfile` provided at root, finally a shell prompt will be displayed on your terminal. Also, syncronization with your local files will be already set.
18+
### Setup
1919

20-
### Tests
21-
`make test` will trigger the excution of both running tests and running rubocop as linter, by simply running `rake`, this actions will be run inside a new container but using your local files.
20+
Run `bundle install` to install dependencies needed for local development.
2221

23-
### Format
22+
### Tests
2423

25-
`make format` will run `rubocop -a` which stands for _autocorrect_ and format your code according to the `.rubocop.yml` config file.
24+
`bundle exec rspec` will trigger the excution of running tests.
2625

2726
## Copyright
2827

bin/run-image

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)