Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration tests to project #747

Merged
merged 32 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0f389e9
Clean up .gitignore of mentions of spec/integration
drwl Feb 1, 2020
4a1fdcb
Generate vanilla Rails 6.0.2.1 application
drwl Feb 1, 2020
6ff7afa
Add .keep for tmp/cache/assets/
drwl Feb 1, 2020
1951cee
Add .keep for Rails app
drwl Feb 1, 2020
d07af38
Add Rails boilerplate .gitignore
drwl Feb 1, 2020
c0c5684
Generate schema.rb
drwl Feb 1, 2020
55195f5
Generate Task model
drwl Feb 1, 2020
5a2e40e
Add default values to Task migration
drwl Feb 1, 2020
258630a
Run `rails db:migrate` and `rubocop --auto-gen-config`
drwl Feb 1, 2020
fb96187
Add local annotate gem
drwl Feb 1, 2020
da833f7
Add resources routes for Task
drwl Feb 1, 2020
03be988
Remove Integration test code from spec_helper.rb
drwl Feb 1, 2020
50fd010
Add integration test for Rails 6.0.2.1
drwl Feb 4, 2020
7d28bd9
Generate vanilla Rails 5.2.4.1 application
drwl Feb 4, 2020
6c48ef9
Generate Task model and migration for Rails 5.2.4.1
drwl Feb 4, 2020
3b9aa90
Add default values for Rails 5.2 Task migration
drwl Feb 4, 2020
4dfdf09
Add local annotate gem for Rails 5.2 app
drwl Feb 4, 2020
48ea6cd
Add resources routes for Task for Rails 5.2
drwl Feb 4, 2020
df75bc0
Remove ruby version from Rails 5.2 Gemfile
drwl Feb 4, 2020
7d6e7aa
Add integration test for Rails 5.2.4.1
drwl Feb 4, 2020
eaea986
Commit schema.rb
drwl Feb 4, 2020
5810c2e
Add bundle install for Rails 5.2 to CI
drwl Feb 4, 2020
f4752c4
Make integration tests run across different versions of Ruby
drwl Feb 4, 2020
8dd1117
Remove Spring from Rails 5.2 app
drwl Feb 6, 2020
1664075
Structuralize `annotate --models` test
drwl Feb 6, 2020
7a16e59
Add test for `annotate --routes`
drwl Feb 6, 2020
ac3ee59
Switch to constants instead of lets
drwl Feb 6, 2020
d31cc42
Use contain_exactly in Rails 5.2
drwl Feb 6, 2020
ddc6eb7
Add test for `annotate --routes` for Rails 6.0 app
drwl Feb 6, 2020
bcab9f2
Rerun `rubocop --auto-gen-config`
drwl Feb 6, 2020
af42826
Inline migration command
drwl Feb 11, 2020
ad4f9ba
Use unique constants
drwl Feb 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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