Skip to content

Commit

Permalink
Add rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
naopontan committed Jan 30, 2023
1 parent 32f87a4 commit 4fc9d3d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,32 @@ jobs:
- redmine-plugin/bundle-install
- redmine-plugin/migrate-without-plugins
- plugin-test/run-tests
rspec:
parameters:
redmine_version:
type: string
ruby_version:
type: string
default: '2.7'
db:
type: enum
enum: ['mysql', 'pg']
default: pg
db_version:
type: string
default: 'latest-ram'
executor:
name: redmine-plugin/ruby-<< parameters.db >>
ruby_version: << parameters.ruby_version >>
db_version: << parameters.db_version >>
steps:
- checkout
- redmine-plugin/download-redmine:
version: << parameters.redmine_version >>
- redmine-plugin/install-self
- redmine-plugin/generate-database_yml
- redmine-plugin/bundle-install
- redmine-plugin/rspec
workflows:
run-tests-workflow:
jobs:
Expand All @@ -72,3 +98,14 @@ workflows:
database: mysql
ruby_version: '2.6'
redmine_version: '4.2.9'
- rspec:
name: RSpec on newest versions with PostgreSQL
redmine_version: latest
ruby_version: '2.7'
db: pg
- rspec:
name: RSpec on oldest versions with MySQL
redmine_version: '4.0.9'
ruby_version: '2.6'
db: mysql
db_version: '5.7-ram'

0 comments on commit 4fc9d3d

Please sign in to comment.