Skip to content

Merge pull request #6497 from ikraamg/perf/tax-calculator-variant-pro… #944

Merge pull request #6497 from ikraamg/perf/tax-calculator-variant-pro…

Merge pull request #6497 from ikraamg/perf/tax-calculator-variant-pro… #944

name: "Solidus Installer"
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: solidus-installer-${{ github.ref_name }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
solidus_installer:
name: Test Installer
runs-on: ubuntu-24.04
env:
DB: sqlite
RUBY_VERSION: "3.2"
SOLIDUS_STOREFRONT_TEMPLATE: ${{ github.workspace }}/storefront/template.rb
COVERAGE: true
COVERAGE_DIR: ${{ github.workspace }}/storefront/coverage
steps:
- uses: actions/checkout@v6
- name: Install libvips
run: |
sudo apt-get update
sudo apt-get install -yq libvips-dev
- name: Install Solidus
uses: ./.github/actions/install_solidus
with:
flags: "--sample=false --frontend=starter --authentication=devise"
- name: "Check homepage"
uses: ./.github/actions/check_page_content
with:
expected_text: "<title>Sample Store</title>"
- name: Ensure the correct PayPal is installed for SSF
run: |
cd $RUNNER_TEMP/my_app
bundle list | grep 'solidus_paypal_commerce_platform (1.'
- name: Setup code coverage
# SimpleCov must start before the app is loaded (Ruby's Coverage only
# tracks files required after Coverage.start), so we load it from the top
# of the generated spec_helper.rb rather than from spec/support, which is
# required after rails_helper has already (eager-)loaded the app.
run: |
cd $RUNNER_TEMP/my_app
cp $GITHUB_WORKSPACE/storefront/lib/testing_support/coverage.rb spec/simplecov_setup.rb
printf 'require_relative "simplecov_setup"\n%s\n' "$(cat spec/spec_helper.rb)" > spec/spec_helper.rb
- name: Run starter frontend specs
run: |
cd $RUNNER_TEMP/my_app
bundle exec rspec spec
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: solidusio/solidus
disable_search: true
files: ${{ env.COVERAGE_DIR }}/coverage.xml