-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
62 lines (59 loc) · 2.13 KB
/
Copy pathsolidus_installer.yml
File metadata and controls
62 lines (59 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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