Skip to content

Commit

Permalink
Add integration tests to project (#747)
Browse files Browse the repository at this point in the history
Adds integration tests to the project that's able to run in CI across different ruby versions.

* Adds a Rails 5.2.4.1 app
* Adds a Rails 6.0.2.1 app

Fixes #733
  • Loading branch information
drwl committed Feb 11, 2020
1 parent d4c04ff commit ec0b3b6
Show file tree
Hide file tree
Showing 172 changed files with 3,188 additions and 437 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.4.x', '2.5.x', '2.6.x']

Expand All @@ -24,11 +25,20 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}

- name: Bundle
- name: Install sqlite
run: |
gem update --system
gem update bundler
bundle install --jobs 4 --retry 3
sudo apt-get install libsqlite3-dev
- name: Test
run: bundle exec rubocop && bundle exec rspec
- name: Update System
run: |
gem update --system --no-document
- name: Bundle install for Annotate models
run: |
bundle install --jobs=4 --retry=3
- name: Run Tests
run: bundle exec rspec

- name: Rubocop
run: bundle exec rubocop
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
!/spec/integration/*/log/.gitkeep
!/spec/integration/*/tmp/.gitkeep
*.gem
.DS_Store
.bundle
Expand All @@ -16,8 +14,4 @@
/doc/*
/pkg/*
/spec/debug.log
/spec/integration/*/bin/
/spec/integration/*/db/test.*
/spec/integration/*/log/*
/spec/integration/*/tmp/*
.byebug_history
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AllCops:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'spec/integration/**/*'

Metrics/BlockLength:
Exclude:
Expand Down
Loading

0 comments on commit ec0b3b6

Please sign in to comment.