#9 Active Storage - GitHub workflow
This commit is contained in:
parent
9f327f3e06
commit
f5b5c5daa7
7
.github/workflows/rubyonrails.yml
vendored
7
.github/workflows/rubyonrails.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
sql2: CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'redmine';
|
sql2: CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'redmine';
|
||||||
sql3: GRANT ALL PRIVILEGES ON test.* TO 'redmine'@'localhost';
|
sql3: GRANT ALL PRIVILEGES ON test.* TO 'redmine'@'localhost';
|
||||||
# SQL client command
|
# SQL client command
|
||||||
database_command: mysql -uroot -proot -e
|
database_command: mysql -u root -p root -e
|
||||||
# SQL service
|
# SQL service
|
||||||
database_service: mysql
|
database_service: mysql
|
||||||
- engine: postgresql
|
- engine: postgresql
|
||||||
@ -84,7 +84,7 @@ jobs:
|
|||||||
sudo apt-get install -y litmus libreoffice subversion
|
sudo apt-get install -y litmus libreoffice subversion
|
||||||
- name: Clone Redmine
|
- name: Clone Redmine
|
||||||
# Get the latest stable Redmine
|
# Get the latest stable Redmine
|
||||||
run: svn export http://svn.redmine.org/redmine/branches/6.1-stable/ /opt/redmine
|
run: svn export https://svn.redmine.org/redmine/branches/6.1-stable/ /opt/redmine
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Link the plugin
|
- name: Link the plugin
|
||||||
@ -134,6 +134,7 @@ jobs:
|
|||||||
echo "config.middleware.insert_before ActionDispatch::Cookies, RedmineDmsf::Webdav::CustomMiddleware" >> /opt/redmine/config/additional_environment.rb
|
echo "config.middleware.insert_before ActionDispatch::Cookies, RedmineDmsf::Webdav::CustomMiddleware" >> /opt/redmine/config/additional_environment.rb
|
||||||
- name: Configure Active Storage
|
- name: Configure Active Storage
|
||||||
# Add configuration for Active Storage to work
|
# Add configuration for Active Storage to work
|
||||||
|
run: |
|
||||||
echo "# Active Storage" >> /opt/redmine/config/additional_environment.rb
|
echo "# Active Storage" >> /opt/redmine/config/additional_environment.rb
|
||||||
echo "require 'active_storage/engine'" >> /opt/redmine/config/additional_environment.rb
|
echo "require 'active_storage/engine'" >> /opt/redmine/config/additional_environment.rb
|
||||||
echo "require Rails.root.join('plugins', 'redmine_dmsf', 'lib', 'redmine_dmsf', 'xapian_analyzer').to_s" >> /opt/redmine/config/additional_environment.rb
|
echo "require Rails.root.join('plugins', 'redmine_dmsf', 'lib', 'redmine_dmsf', 'xapian_analyzer').to_s" >> /opt/redmine/config/additional_environment.rb
|
||||||
@ -159,7 +160,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /opt/redmine
|
cd /opt/redmine
|
||||||
bundle exec rubocop -c plugins/redmine_dmsf/.rubocop.yml plugins/redmine_dmsf/
|
bundle exec rubocop -c plugins/redmine_dmsf/.rubocop.yml plugins/redmine_dmsf/
|
||||||
- name: Litmus
|
#- name: Litmus
|
||||||
# Prepare Redmine's environment for WebDAV testing
|
# Prepare Redmine's environment for WebDAV testing
|
||||||
# Run Webrick server
|
# Run Webrick server
|
||||||
# Run Litmus tests (Omit 'http' tests due to 'timeout waiting for interim response' and locks due to complex bogus conditional)
|
# Run Litmus tests (Omit 'http' tests due to 'timeout waiting for interim response' and locks due to complex bogus conditional)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user