-
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.
- Loading branch information
Showing
140 changed files
with
3,928 additions
and
1,102 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 |
---|---|---|
|
@@ -10,80 +10,8 @@ jobs: | |
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
ruby-version: 3.2.1 | ||
- name: Install dependencies | ||
run: bundle install | ||
- name: Run linter | ||
run: bundle exec standardrb | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: ['3.0.6'] | ||
|
||
services: | ||
postgres: | ||
image: postgres:latest | ||
env: | ||
POSTGRES_HOST: 127.0.0.1 | ||
POSTGRES_PORT: 5432 | ||
POSTGRES_DB: geoblacklight_test | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- 5432:5432 | ||
# Set health checks to wait until postgres has started | ||
options: | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Solr - Create container | ||
run: docker run -d -p 8983:8983 geoblacklight/solr:8.9-v1.0.0 server/scripts/ci-start.sh | ||
|
||
- name: Bundler - Install | ||
run: gem install bundler -v 2.4.13 | ||
|
||
- name: Bundler - Install dependencies | ||
run: bundle _2.4.13_ install | ||
env: | ||
rails_version: 7.0.5 | ||
|
||
- name: Node - v14 (Yes... 14 avoids the digital envelope routines::unsupported error seen on 18) | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14.18.1' | ||
|
||
- name: Yarn - Setup | ||
run: exec "yarnpkg" | ||
|
||
- name: Solr - Load config into solr | ||
run: | | ||
cd solr/conf | ||
zip -1 -r solr_config.zip ./* | ||
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://solr:[email protected]:8983/solr/admin/configs?action=UPLOAD&name=blacklight" | ||
curl -H 'Content-type: application/json' http://solr:[email protected]:8983/api/collections/ -d '{create: {name: blacklight-core, config: blacklight, numShards: 1}}' | ||
- name: Rails - Run tests | ||
run: bundle exec rake ci | ||
env: | ||
RAILS_ENV: test | ||
rails_version: 6.1.7.4 | ||
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-coffee' | ||
SOLR_URL: http://solr:SolrRocks@localhost:8983/solr/blacklight-core | ||
|
||
- name: Artifacts - Upload coverage | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: coverage | ||
path: coverage/ | ||
run: bundle exec standardrb |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
vite: bin/vite dev | ||
web: bin/rails s |
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,4 +1,8 @@ | ||
// jQuery Ready | ||
$(document).on('ready turbolinks:load', function() { | ||
$('.chosen-select').chosen(); | ||
// VanillaJS Ready | ||
document.addEventListener('DOMContentLoaded', function() { | ||
var elements = document.querySelectorAll('.chosen-select'); | ||
Array.prototype.forEach.call(elements, function(el, i){ | ||
console.log("Vanilla JS Chosen Select"); | ||
$('.chosen-select').chosen(); | ||
}); | ||
}); |
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,4 +1,4 @@ | ||
// jQuery Ready | ||
$(document).on('ready turbolinks:load', function() { | ||
// VanillaJS Ready | ||
document.addEventListener('DOMContentLoaded', function() { | ||
$("input[data-inputmask]").inputmask(); | ||
}); |
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,4 +1,4 @@ | ||
// jQuery Ready | ||
$(document).on('ready turbolinks:load', function() { | ||
// VanillaJS Ready | ||
document.addEventListener('DOMContentLoaded', function() { | ||
$('.js-truncate').shave(32); | ||
}); |
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
4 changes: 4 additions & 0 deletions
4
app/assets/stylesheets/geoblacklight_admin/modules/_images.scss
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,4 @@ | ||
.thumbnail { | ||
max-height: 65px; | ||
max-width: 65px; | ||
} |
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 |
---|---|---|
|
@@ -7,3 +7,7 @@ | |
.make-me-sticky { | ||
top:8rem; | ||
} | ||
|
||
.navbar a { | ||
text-decoration: none; | ||
} |
5 changes: 5 additions & 0 deletions
5
app/assets/stylesheets/geoblacklight_admin/modules/_results.scss
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,5 @@ | ||
ol#results { | ||
li { | ||
margin-bottom: 1rem; | ||
} | ||
} |
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
Oops, something went wrong.