Skip to content

Commit 9247cb6

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

2 files changed

Lines changed: 62 additions & 73 deletions

File tree

.circleci/config.yml

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

.github/workflows/test.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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: 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+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Run extension tests
51+
uses: solidusio/test-solidus-extension@main
52+
with:
53+
database: ${{ matrix.database }}
54+
rails-version: ${{ matrix.rails-version }}
55+
ruby-version: ${{ matrix.ruby-version }}
56+
solidus-branch: ${{ matrix.solidus-branch }}
57+
- name: Upload coverage reports to Codecov
58+
uses: codecov/codecov-action@v5
59+
continue-on-error: true
60+
with:
61+
token: ${{ secrets.CODECOV_TOKEN }}
62+
files: ${{ env.TEST_RESULTS_PATH }}

0 commit comments

Comments
 (0)