Skip to content

Commit

Permalink
Marketplace: Install libvips for testing Product::Photos
Browse files Browse the repository at this point in the history
- #1430
- #1428

- Pulled from https://github.com/libvips/ruby-vips/blob/master/.github/workflows/test.yml

I'm not particularly pleased with this, but I didn't find a github
action; and I'm not entirely sure why the test passes locally but not on
CI.
  • Loading branch information
zspencer committed May 23, 2023
1 parent 2e88183 commit 034b712
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-convene-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Update apt
env:
DEBIAN_FRONTEND: noninteractive
run:
sudo apt-get update -qq -o Acquire::Retries=3

- name: Install libvips
env:
DEBIAN_FRONTEND: noninteractive
run:
# we only need the library
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3
libvips

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
Expand Down Expand Up @@ -68,6 +82,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Update apt
env:
DEBIAN_FRONTEND: noninteractive
run:
sudo apt-get update -qq -o Acquire::Retries=3

- name: Install libvips
env:
DEBIAN_FRONTEND: noninteractive
run:
# we only need the library
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3
libvips

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
Expand Down
1 change: 1 addition & 0 deletions spec/furniture/marketplace/cart_product_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
it { is_expected.to have_content(helpers.humanized_money_with_symbol(product.price)) }
it { is_expected.to have_link(I18n.t("marketplace.cart_product_component.add")) }
it { is_expected.to have_link(I18n.t("marketplace.cart_product_component.remove")) }
it { is_expected.to have_selector("img[src$='#{product.photo.filename}']") }

context "when the product is not yet in the cart" do
let(:cart_product) { build(:marketplace_cart_product, cart: cart, product: product, quantity: 0) }
Expand Down

0 comments on commit 034b712

Please sign in to comment.