Skip to content

Commit

Permalink
Merge pull request #39 from blocknotes/test/update-test-suite
Browse files Browse the repository at this point in the history
test: update test suite
  • Loading branch information
blocknotes committed Nov 2, 2023
2 parents bcc8de3 + fdeb9b8 commit 9857674
Show file tree
Hide file tree
Showing 80 changed files with 367 additions and 2,030 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/specs_mysql_60.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/specs_mysql_61.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ jobs:
- name: Start database service
run: sudo /etc/init.d/mysql start

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
9 changes: 3 additions & 6 deletions .github/workflows/specs_mysql_70.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby: ['2.7', '3.0']
ruby: ['3.0', '3.2']
gemfile: ['rails_7_0_mysql']

env:
Expand Down Expand Up @@ -51,11 +51,8 @@ jobs:
- name: Start database service
run: sudo /etc/init.d/mysql start

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
7 changes: 2 additions & 5 deletions .github/workflows/specs_mysql_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ jobs:
- name: Start database service
run: sudo /etc/init.d/mysql start

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
65 changes: 0 additions & 65 deletions .github/workflows/specs_postgres_60.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/specs_postgres_61.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/specs_postgres_70.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby: ['2.7', '3.0']
ruby: ['3.0', '3.2']
gemfile: ['rails_7_0_postgres']

env:
Expand Down Expand Up @@ -48,11 +48,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/specs_postgres_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Create database
run: bundle exec rails db:create

- name: Apply migrations
run: bundle exec rails db:migrate
- name: Database setup
run: bundle exec rails db:create db:migrate

- name: Run tests
run: bundle exec rspec --profile
Expand Down
10 changes: 0 additions & 10 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# frozen_string_literal: true

appraise 'rails-6_0-postgres' do
gem 'pg'
gem 'rails', '~> 6.0.0'
end

appraise 'rails-6_1-postgres' do
gem 'pg'
gem 'rails', '~> 6.1.0'
Expand All @@ -20,11 +15,6 @@ appraise 'rails-7_1-postgres' do
gem 'rails', '~> 7.1.0'
end

appraise 'rails-6_0-mysql' do
gem 'mysql2'
gem 'rails', '~> 6.0.0'
end

appraise 'rails-6_1-mysql' do
gem 'mysql2'
gem 'rails', '~> 6.1.0'
Expand Down
25 changes: 0 additions & 25 deletions gemfiles/rails_6_0_mysql.gemfile

This file was deleted.

Loading

0 comments on commit 9857674

Please sign in to comment.