diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a4a9bd7..bcf46ac 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -18,20 +18,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: ['3.2', '3.3'] - rails: ['7.2.1', '7.1.4'] + ruby: ["3.2", "3.3"] + rails: ["7.2.1", "7.1.4"] steps: - - uses: actions/checkout@v2 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: bundle install - env: - RAILS_VERSION: ${{ matrix.rails }} - - name: Run tests - run: bundle exec rake - env: - RAILS_VERSION: ${{ matrix.rails }} - ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test' + - name: Install ImageMagick + run: sudo apt install imagemagick + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: bundle install + env: + RAILS_VERSION: ${{ matrix.rails }} + - name: Run tests + run: bundle exec rake + env: + RAILS_VERSION: ${{ matrix.rails }} + ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test" diff --git a/spec/controllers/riiif/images_controller_spec.rb b/spec/controllers/riiif/images_controller_spec.rb index 27294d1..080f178 100644 --- a/spec/controllers/riiif/images_controller_spec.rb +++ b/spec/controllers/riiif/images_controller_spec.rb @@ -160,7 +160,7 @@ 'height' => 4000, 'format' => 'JPEG', 'channels' => 'rgb', - 'profile' => ['http://iiif.io/api/image/2/level1.json', 'formats' => %w(jpg png)], + 'profile' => ['http://iiif.io/api/image/2/level1.json', 'formats' => %w(webp jpg png)], 'protocol' => 'http://iiif.io/api/image' expect(response.headers['Link']).to eq ';rel="profile"' expect(response.headers['Content-Type']).to eq 'application/ld+json; charset=utf-8'