-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to work with esse 0.2 API (#3)
* update esse dependency to 0.2.3 or upper * chore: update dev dependencies * minor adjustments to the rubocop rules * chore: fix rubocop offenses * chore: update specs and readme to use new esse API * chore: use stub index rspec helpers from esse-rspec * fix: delete callback should not throw an error when document does not exist * feat: add github actions workflow * feat: add sqlite3 dependency to the github actions workflow * fix: use real models instead of a Dummy class with ActiveModels callbacks * feat: extend the matrix of ruby and rails versions in the ci * chore: separate liner to a new step
- Loading branch information
Showing
30 changed files
with
1,383 additions
and
294 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build and Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
name: "Rubocop" | ||
env: | ||
BUNDLE_GEMFILE: ci/Gemfile.rails-6.1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.0" | ||
bundler-cache: true | ||
- name: Run linter | ||
run: bundle exec rubocop | ||
ruby-2: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- "2.7" | ||
gemfile: | ||
- ci/Gemfile.rails-5.2 | ||
name: "ruby-${{ matrix.ruby }}/${{ matrix.gemfile }} specs" | ||
env: | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rspec | ||
ruby-3: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- "3.0" | ||
- "3.1" | ||
- "3.2" | ||
- "3.3" | ||
gemfile: | ||
- ci/Gemfile.rails-6.0 | ||
- ci/Gemfile.rails-6.1 | ||
- ci/Gemfile.rails-7.0 | ||
- ci/Gemfile.rails-7.1 | ||
name: "ruby-${{ matrix.ruby }}/${{ matrix.gemfile }} specs" | ||
env: | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rspec |
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.