Skip to content

Commit 6c352de

Browse files
committed
CI: Use Solidus' reusable GH workflow for testing
Instead of setting up all services and the matrix in this extension we use the new reusable workflow that handles this for us. Needs solidusio/test-solidus-extension#3
1 parent 8e6280a commit 6c352de

File tree

1 file changed

+2
-45
lines changed

1 file changed

+2
-45
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,5 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
rspec:
20-
name: Solidus ${{ matrix.solidus-branch }}, Rails ${{ matrix.rails-version }} and Ruby ${{ matrix.ruby-version }} on ${{ matrix.database }}
21-
runs-on: ubuntu-24.04
22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
rails-version:
26-
- "7.2"
27-
- "8.0"
28-
ruby-version:
29-
- "3.1"
30-
- "3.4"
31-
solidus-branch:
32-
- "v4.4"
33-
- "v4.5"
34-
- "v4.6"
35-
database:
36-
- "postgresql"
37-
- "mysql"
38-
- "sqlite"
39-
exclude:
40-
- solidus-branch: "v4.5"
41-
ruby-version: "3.1"
42-
- solidus-branch: "v4.6"
43-
ruby-version: "3.1"
44-
- solidus-branch: "v4.4"
45-
rails-version: "8.0"
46-
env:
47-
TEST_RESULTS_PATH: coverage/coverage.xml
48-
CAPYBARA_JAVASCRIPT_DRIVER: selenium_headless
49-
steps:
50-
- uses: actions/checkout@v4
51-
- name: Run extension tests
52-
uses: solidusio/test-solidus-extension@main
53-
with:
54-
database: ${{ matrix.database }}
55-
rails-version: ${{ matrix.rails-version }}
56-
ruby-version: ${{ matrix.ruby-version }}
57-
solidus-branch: ${{ matrix.solidus-branch }}
58-
- name: Upload coverage reports to Codecov
59-
uses: codecov/codecov-action@v5
60-
continue-on-error: true
61-
with:
62-
token: ${{ secrets.CODECOV_TOKEN }}
63-
files: ${{ env.TEST_RESULTS_PATH }}
19+
Test:
20+
uses: solidusio/test-solidus-extension/.github/workflows/test.yml@add-reusable-workflow

0 commit comments

Comments
 (0)