Skip to content

Commit

Permalink
CI: rake geoportal:ci
Browse files Browse the repository at this point in the history
GH Actions was calling rake ci, which was returning GBL Admin's rake ci task; This change nests our local CI task under geoportal:ci to make sure "our" ci task is the one running.
  • Loading branch information
ewlarson committed Nov 6, 2023
1 parent f645eeb commit 48c9735
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/blacklight-core
FARADAY_VERSION: ${{ matrix.faraday_version }}
run: bundle exec rake ci --trace
run: bundle exec rake geoportal:ci --trace

- name: Artifacts - Upload coverage
uses: actions/upload-artifact@v2
Expand Down
17 changes: 8 additions & 9 deletions lib/tasks/geoportal.rake
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# frozen_string_literal: true

task :ci do
if Rails.env.test?
success = true
Rake::Task['geoportal:index:seed'].invoke
system('RAILS_ENV=test bundle exec rails test:system test') || success = false
exit!(1) unless success
namespace :geoportal do
task :ci do
if Rails.env.test?
success = true
Rake::Task['geoportal:index:seed'].invoke
system('RAILS_ENV=test bundle exec rails test:system test') || success = false
exit!(1) unless success
end
end
end

namespace :geoportal do
desc 'Run Solr and GeoBlacklight for interactive development'
task :server, [:rails_server_args] do
require 'solr_wrapper'
Expand Down

0 comments on commit 48c9735

Please sign in to comment.