-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #404 from uclibs/qa
Preparing 1.0.1 release
- Loading branch information
Showing
169 changed files
with
3,777 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
ignore: | ||
- CVE-2022-25765 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,17 @@ executors: | |
docker: | ||
- image: docker:20.10.7-git | ||
|
||
orbs: | ||
ruby: circleci/[email protected] | ||
node: circleci/[email protected] | ||
browser-tools: circleci/[email protected] | ||
coveralls: coveralls/[email protected] | ||
|
||
jobs: | ||
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/ruby:2.7.4-node-browsers | ||
- image: cimg/ruby:3.0.5-browsers | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
|
@@ -38,6 +44,8 @@ jobs: | |
|
||
steps: | ||
- checkout | ||
- browser-tools/install-chrome | ||
- browser-tools/install-chromedriver | ||
|
||
- restore_cache: | ||
keys: | ||
|
@@ -54,6 +62,7 @@ jobs: | |
- run: | ||
name: Install Dependencies | ||
no_output_timeout: 15m | ||
command: | | ||
bundle install | ||
sudo apt-get update | ||
|
@@ -74,6 +83,19 @@ jobs: | |
gem install rubocop | ||
bundle exec rubocop --require rubocop-rails | ||
# Brakeman | ||
- run: | ||
name: Run Brakeman | ||
command: bundle exec brakeman -q -w 2 | ||
|
||
# Bundler-audit | ||
- run: | ||
name: Install Bundler-audit | ||
command: gem install bundler-audit | ||
- run: | ||
name: Run Bundle-audit | ||
command: bundle exec bundle audit check --update | ||
|
||
# run tests! | ||
- run: | ||
name: Run rspec in parallel | ||
|
@@ -82,21 +104,9 @@ jobs: | |
bundle exec rspec $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) | ||
#bundle exec rspec --out /tmp/test-results/rspec.xml $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) | ||
# collect reports | ||
- store_test_results: | ||
path: /tmp/test-results | ||
- store_artifacts: | ||
path: /tmp/test-results | ||
destination: test-results | ||
|
||
|
||
- store_artifacts: | ||
path: coverage | ||
|
||
- deploy: | ||
name: Update Coveralls | ||
command: | | ||
curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_BUILD_NUM&payload[status]=done" | ||
- coveralls/upload: | ||
parallel_finished: true | ||
path_to_lcov: /home/circleci/treatment_database/coverage/lcov/treatment_database.lcov | ||
|
||
workflows: | ||
version: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,8 @@ | |
TREATMENT_DATABASE_POOL=5 | ||
TREATMENT_DATABASE_PORT= | ||
TREATMENT_DATABASE_TIMEOUT=5000 | ||
TREATMENT_DATABASE_USERNAME= | ||
TREATMENT_DATABASE_USERNAME= | ||
|
||
Mailer settings | ||
TREATMENT_PRODUCTION_MAILER_FROM=[email protected] | ||
TREATMENT_PRODUCTION_MAILER_URL=localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-2.7.4 | ||
ruby-3.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'capistrano/setup' | ||
require 'capistrano/deploy' | ||
require 'capistrano/scm/git' | ||
install_plugin Capistrano::SCM::Git | ||
|
||
require 'capistrano/bundler' | ||
require 'capistrano/rails/assets' | ||
require 'capistrano/rails/migrations' | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } | ||
|
||
task :use_rvm do | ||
require 'capistrano/rvm' | ||
end | ||
|
||
task local: :use_rvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.