Skip to content

Commit 90074dc

Browse files
committed
CI: Run tests on GH actions
We want to get rid of circle-ci. Extension by extension.
1 parent aba81b2 commit 90074dc

2 files changed

Lines changed: 61 additions & 73 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
schedule:
9+
- cron: "0 0 * * 4" # every Thursday
10+
11+
concurrency:
12+
group: test-${{ github.ref_name }}
13+
cancel-in-progress: ${{ github.ref_name != 'main' }}
14+
15+
permissions:
16+
contents: read
17+
18+
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: true
24+
matrix:
25+
rails-version:
26+
- "7.1"
27+
- "7.2"
28+
ruby-version:
29+
- "3.1"
30+
- "3.4"
31+
solidus-branch:
32+
- "v4.3"
33+
- "v4.4"
34+
- "v4.5"
35+
- "v4.6"
36+
database:
37+
- "postgresql"
38+
- "mysql"
39+
- "sqlite"
40+
exclude:
41+
- rails-version: "7.2"
42+
solidus-branch: "v4.3"
43+
- solidus-branch: "v4.5"
44+
ruby-version: "3.1"
45+
env:
46+
TEST_RESULTS_PATH: coverage/coverage.xml
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Run extension tests
50+
uses: solidusio/test-solidus-extension@main
51+
with:
52+
database: ${{ matrix.database }}
53+
rails-version: ${{ matrix.rails-version }}
54+
ruby-version: ${{ matrix.ruby-version }}
55+
solidus-branch: ${{ matrix.solidus-branch }}
56+
- name: Upload coverage reports to Codecov
57+
uses: codecov/codecov-action@v5
58+
continue-on-error: true
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
files: ${{ env.TEST_RESULTS_PATH }}

0 commit comments

Comments
 (0)