update link_to_search to work with only one/no search_field #3063
Workflow file for this run
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 workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | |
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- "release-*" | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler: "latest" | |
- name: Change permissions | |
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :" | |
- name: Install dependencies | |
run: bundle install | |
- name: Run linter | |
run: bundle exec rake rubocop | |
test: | |
runs-on: ubuntu-latest | |
name: test (ruby ${{ matrix.ruby }} / rails ${{ matrix.rails_version }} ${{ matrix.additional_name }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["3.3"] | |
rails_version: ["7.0.8.4", "7.1.3.4", "7.2.0"] | |
bootstrap_version: [null] | |
view_component_version: ["~> 3.12"] | |
api: [null] | |
additional_engine_cart_rails_options: [""] | |
additional_name: [""] | |
include: | |
- ruby: "3.3" | |
rails_version: "8.0.0.beta1" | |
additional_engine_cart_rails_options: --css=bootstrap | |
- ruby: "3.3" | |
rails_version: "8.0.0.beta1" | |
additional_engine_cart_rails_options: --css=bootstrap --js=esbuild | |
additional_name: "/ esbuild" | |
- ruby: "3.2" | |
rails_version: "7.0.8.4" | |
- ruby: "3.2" | |
rails_version: "7.1.3.4" | |
solr_version: "8.11.2" | |
additional_name: "Solr 8.11.2" | |
- ruby: "3.1" | |
rails_version: "7.1.3.4" | |
- ruby: "3.1" | |
rails_version: "7.0.8.4" | |
additional_name: "/ Propshaft" | |
additional_engine_cart_rails_options: -a propshaft --css=bootstrap | |
- ruby: "3.3" | |
rails_version: "7.1.3.4" | |
api: "true" | |
additional_engine_cart_rails_options: --api --skip-yarn | |
additional_name: "/ API" | |
- ruby: "3.3" | |
rails_version: "7.2.1" | |
additional_engine_cart_rails_options: -a propshaft --css=bootstrap --js=esbuild | |
additional_name: "/ Propshaft, esbuild" | |
env: | |
RAILS_VERSION: ${{ matrix.rails_version }} | |
SOLR_VERSION: ${{ matrix.solr_version || 'latest' }} | |
VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }} | |
BOOTSTRAP_VERSION: ${{ matrix.bootstrap_version }} | |
BLACKLIGHT_API_TEST: ${{ matrix.api }} | |
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-kamal --skip-solid --skip-coffee --skip-test ${{ matrix.additional_engine_cart_rails_options }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler: "latest" | |
ruby-version: ${{ matrix.ruby }} | |
- name: Change permissions | |
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :" | |
- name: Install dependencies | |
run: bundle install | |
- name: Run tests | |
run: bundle exec rake ci | |
docker_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build docker image | |
run: docker compose build app |