Skip to content

Commit 9857674

Browse files
authored
Merge pull request #39 from blocknotes/test/update-test-suite
test: update test suite
2 parents bcc8de3 + fdeb9b8 commit 9857674

80 files changed

Lines changed: 367 additions & 2030 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1

.github/workflows/specs_mysql_60.yml

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

.github/workflows/specs_mysql_61.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ jobs:
5151
- name: Start database service
5252
run: sudo /etc/init.d/mysql start
5353

54-
- name: Create database
55-
run: bundle exec rails db:create
56-
57-
- name: Apply migrations
58-
run: bundle exec rails db:migrate
54+
- name: Database setup
55+
run: bundle exec rails db:create db:migrate
5956

6057
- name: Run tests
6158
run: bundle exec rspec --profile

.github/workflows/specs_mysql_70.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
ruby: ['2.7', '3.0']
16+
ruby: ['3.0', '3.2']
1717
gemfile: ['rails_7_0_mysql']
1818

1919
env:
@@ -51,11 +51,8 @@ jobs:
5151
- name: Start database service
5252
run: sudo /etc/init.d/mysql start
5353

54-
- name: Create database
55-
run: bundle exec rails db:create
56-
57-
- name: Apply migrations
58-
run: bundle exec rails db:migrate
54+
- name: Database setup
55+
run: bundle exec rails db:create db:migrate
5956

6057
- name: Run tests
6158
run: bundle exec rspec --profile

.github/workflows/specs_mysql_71.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ jobs:
5151
- name: Start database service
5252
run: sudo /etc/init.d/mysql start
5353

54-
- name: Create database
55-
run: bundle exec rails db:create
56-
57-
- name: Apply migrations
58-
run: bundle exec rails db:migrate
54+
- name: Database setup
55+
run: bundle exec rails db:create db:migrate
5956

6057
- name: Run tests
6158
run: bundle exec rspec --profile

.github/workflows/specs_postgres_60.yml

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

.github/workflows/specs_postgres_61.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ jobs:
4848
ruby-version: ${{ matrix.ruby }}
4949
bundler-cache: true
5050

51-
- name: Create database
52-
run: bundle exec rails db:create
53-
54-
- name: Apply migrations
55-
run: bundle exec rails db:migrate
51+
- name: Database setup
52+
run: bundle exec rails db:create db:migrate
5653

5754
- name: Run tests
5855
run: bundle exec rspec --profile

.github/workflows/specs_postgres_70.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
ruby: ['2.7', '3.0']
16+
ruby: ['3.0', '3.2']
1717
gemfile: ['rails_7_0_postgres']
1818

1919
env:
@@ -48,11 +48,8 @@ jobs:
4848
ruby-version: ${{ matrix.ruby }}
4949
bundler-cache: true
5050

51-
- name: Create database
52-
run: bundle exec rails db:create
53-
54-
- name: Apply migrations
55-
run: bundle exec rails db:migrate
51+
- name: Database setup
52+
run: bundle exec rails db:create db:migrate
5653

5754
- name: Run tests
5855
run: bundle exec rspec --profile

.github/workflows/specs_postgres_71.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ jobs:
4848
ruby-version: ${{ matrix.ruby }}
4949
bundler-cache: true
5050

51-
- name: Create database
52-
run: bundle exec rails db:create
53-
54-
- name: Apply migrations
55-
run: bundle exec rails db:migrate
51+
- name: Database setup
52+
run: bundle exec rails db:create db:migrate
5653

5754
- name: Run tests
5855
run: bundle exec rspec --profile

Appraisals

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# frozen_string_literal: true
22

3-
appraise 'rails-6_0-postgres' do
4-
gem 'pg'
5-
gem 'rails', '~> 6.0.0'
6-
end
7-
83
appraise 'rails-6_1-postgres' do
94
gem 'pg'
105
gem 'rails', '~> 6.1.0'
@@ -20,11 +15,6 @@ appraise 'rails-7_1-postgres' do
2015
gem 'rails', '~> 7.1.0'
2116
end
2217

23-
appraise 'rails-6_0-mysql' do
24-
gem 'mysql2'
25-
gem 'rails', '~> 6.0.0'
26-
end
27-
2818
appraise 'rails-6_1-mysql' do
2919
gem 'mysql2'
3020
gem 'rails', '~> 6.1.0'

0 commit comments

Comments
 (0)