Skip to content

Commit

Permalink
Merge pull request #105 from AlexanderOtavka/remove-yarn-check
Browse files Browse the repository at this point in the history
Remove yarn integrity tests
  • Loading branch information
AlexanderOtavka authored Jan 12, 2020
2 parents 65a9829 + dedffde commit 760ae0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ jobs:
run: docker-compose build
- name: Initialize database
run: docker-compose run web bin/initialize.sh
- name: Run tests
- name: Run ruby tests
run: docker-compose run web bin/test.sh --ruby
- name: Yarn integrity check
run: docker-compose run web bin/test.sh --yarn-integrity
16 changes: 1 addition & 15 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
SCRIPT_NAME="test.sh"

RUBY_TESTS=false
CHECK_YARN_INTEGRETY=false
HELP=false

# Parse command line args
Expand All @@ -13,10 +12,6 @@ do
key="$1"

case $key in
-Y|--yarn-integrity)
CHECK_YARN_INTEGRETY=true
shift # past argument
;;
-R|--ruby)
RUBY_TESTS=true
shift # past argument
Expand Down Expand Up @@ -44,7 +39,6 @@ if $HELP ; then
echo "$SCRIPT_NAME [no parameters]"
echo " -h or --help Print this message"
echo " -R or --ruby Run ruby tests"
echo " -Y or --yarn-integrity Run yarn integrity check"
echo
echo "Note: calling this script with no options will run all"
echo "tests. Calling this script with any subset of the tests will"
Expand All @@ -54,20 +48,12 @@ fi

EXIT_STATUS="0"

if $RUBY_TESTS || ! $CHECK_YARN_INTEGRETY ; then
if $RUBY_TESTS || true; then
echo
echo "Running ruby tests..."
echo
rake test || \
EXIT_STATUS="1"
fi

if $CHECK_YARN_INTEGRETY || ! $RUBY_TESTS ; then
echo
echo "Running yarn integrity check..."
echo
yarn check --integrity || \
EXIT_STATUS="1"
fi

exit $EXIT_STATUS
5 changes: 4 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
config.action_mailer.raise_delivery_errors = true

config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

Expand All @@ -70,4 +70,7 @@
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker

# Turn off webpacker yarn integrity check - this is deprecated anyways:
# https://github.com/yarnpkg/rfcs/pull/106
config.webpacker.check_yarn_integrity = false
end

0 comments on commit 760ae0f

Please sign in to comment.