Skip to content

Commit

Permalink
Merge pull request #158 from CDLUC3/development
Browse files Browse the repository at this point in the history
Upgrade to latest DMPRoadmap release
  • Loading branch information
briri authored Apr 9, 2020
2 parents 2fc5609 + ccd4b82 commit d5bf4cc
Show file tree
Hide file tree
Showing 112 changed files with 1,652 additions and 714 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/brakeman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

# Will run Brakeman checks on dependencies
# https://github.com/marketplace/actions/brakeman-linter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

# Will run ES Lint checks on javascript files
# https://github.com/marketplace/actions/run-eslint
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ jobs:
DB_ADAPTER: mysql2
MYSQL_PWD: root
RAILS_ENV: test
WICKED_PDF_PATH: vendor/bundle/bin/wkhtmltopdf

steps:
# Checkout the repo
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1

Expand Down Expand Up @@ -74,11 +73,25 @@ jobs:
${{ runner.os }}-yarn-
${{ runner.os }}-
# Figure out where wkhtmltopdf is installed
- name: 'Determine wkhtmltopdf location'
run: echo ::set-env name=WICKED_PDF_PATH::$(echo `bundle exec which wkhtmltopdf`)

# Startup MySQL
- name: 'Start MySQL'
run: sudo systemctl start mysql



# Install the JS dependencies
- name: 'Yarn Install'
run: |
yarn install
# Figure out where wkhtmltopdf is installed
- name: 'Determine wkhtmltopdf location'
run: echo ::set-env name=WICKED_PDF_PATH::$(echo `bundle exec which wkhtmltopdf`)

# Setup the database
- name: 'Setup Test DB'
run: bundle exec rake db:setup RAILS_ENV=test
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ jobs:
services:
# Postgres installation
db:
image: postgres:11
image: postgres
env:
# Latest version of Postgres has increased security. We can use the default
# user/password in this testing scenario though so use the following env
# variable to bypass this changes:
# https://github.com/docker-library/postgres/issues/681
POSTGRES_HOST_AUTH_METHOD: trust
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
Expand All @@ -20,11 +26,10 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:@localhost:5432/roadmap_test
WICKED_PDF_PATH: vendor/bundle/bin/wkhtmltopdf

steps:
# Checkout the repo
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 1

Expand All @@ -38,6 +43,7 @@ jobs:
- name: 'Determine Ruby Version'
run: echo ::set-env name=RUBY_VERSION::$(echo `cat ./Gemfile.lock | grep -A 1 'RUBY VERSION' | grep 'ruby' | grep -oE '[0-9]\.[0-9]'`)


# Install Ruby - using the version found in the Gemfile.lock
- name: 'Install Ruby'
uses: actions/setup-ruby@v1
Expand Down Expand Up @@ -84,6 +90,10 @@ jobs:
${{ runner.os }}-yarn-
${{ runner.os }}-
# Figure out where wkhtmltopdf is installed
- name: 'Determine wkhtmltopdf location'
run: echo ::set-env name=WICKED_PDF_PATH::$(echo `bundle exec which wkhtmltopdf`)

# Install the JS dependencies
- name: 'Yarn Install'
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

# Extract the Ruby version from the Gemfile.lock
# - name: 'Determine Ruby Version'
Expand All @@ -31,4 +31,4 @@ jobs:
# additional-gems: 'rubocop-dmp_roadmap'

- name: 'Placeholder for Rubocop'
run: echo "Rubocop has been temporarily disabled"
run: echo "Rubocop has been temporarily disabled"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Ignore rbenv files
.ruby-version

# Version file generated by Capistrano
.version

# Ignore bundler config
/.bundle

Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ gem 'wicked_pdf', '~> 1.1.0'
# This simple gem allows you to create MS Word docx documents from simple html documents. This makes it easy to create dynamic reports and forms that can be downloaded by your users as simple MS Word docx files. (http://github.com/karnov/htmltoword)
gem 'htmltoword', '1.1.0'

# A feed fetching and parsing library (http://feedjira.com)
gem 'feedjira'

# Filename sanitization for Ruby. This is useful when you generate filenames for downloads from user input
gem 'zaru'

Expand Down Expand Up @@ -204,6 +201,9 @@ gem "dotenv-rails"

gem 'activerecord-session_store'

# -------------------------------------------------
# UTILITIES
gem 'parallel'

# ------------------------------------------------
# ENVIRONMENT SPECIFIC DEPENDENCIES
Expand Down
Loading

0 comments on commit d5bf4cc

Please sign in to comment.