Skip to content

Commit fea426a

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 640f2c3 commit fea426a

1 file changed

Lines changed: 2 additions & 68 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +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-
services:
23-
postgres:
24-
image: postgres:16
25-
env:
26-
POSTGRES_HOST_AUTH_METHOD: trust
27-
options: >-
28-
--health-cmd="pg_isready"
29-
--health-interval=10s
30-
--health-timeout=5s
31-
--health-retries=5
32-
ports:
33-
- 5432:5432
34-
mysql:
35-
image: mysql:8
36-
env:
37-
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
38-
options: >-
39-
--health-cmd="mysqladmin ping"
40-
--health-interval=10s
41-
--health-timeout=5s
42-
--health-retries=5
43-
ports:
44-
- 3306:3306
45-
strategy:
46-
fail-fast: false
47-
matrix:
48-
rails-version:
49-
- "7.2"
50-
- "8.0"
51-
ruby-version:
52-
- "3.1"
53-
- "3.4"
54-
solidus-branch:
55-
- "v4.4"
56-
- "v4.5"
57-
- "v4.6"
58-
database:
59-
- "postgresql"
60-
- "mysql"
61-
- "sqlite"
62-
exclude:
63-
- solidus-branch: "v4.5"
64-
ruby-version: "3.1"
65-
- solidus-branch: "v4.6"
66-
ruby-version: "3.1"
67-
- solidus-branch: "v4.4"
68-
rails-version: "8.0"
69-
env:
70-
TEST_RESULTS_PATH: coverage/coverage.xml
71-
CAPYBARA_JAVASCRIPT_DRIVER: selenium_headless
72-
steps:
73-
- uses: actions/checkout@v4
74-
- name: Run extension tests
75-
uses: solidusio/test-solidus-extension@main
76-
with:
77-
database: ${{ matrix.database }}
78-
rails-version: ${{ matrix.rails-version }}
79-
ruby-version: ${{ matrix.ruby-version }}
80-
solidus-branch: ${{ matrix.solidus-branch }}
81-
- name: Upload coverage reports to Codecov
82-
uses: codecov/codecov-action@v5
83-
continue-on-error: true
84-
with:
85-
token: ${{ secrets.CODECOV_TOKEN }}
86-
files: ${{ env.TEST_RESULTS_PATH }}
19+
Test:
20+
uses: solidusio/test-solidus-extension/.github/workflows/test.yml@v1

0 commit comments

Comments
 (0)