Skip to content

Commit 9a64f17

Browse files
authored
Merge pull request #34 from SuperGoodSoft/alistair/gh-actions
Switch from CircleCI to Github actions
2 parents 3199c21 + 3931239 commit 9a64f17

File tree

3 files changed

+91
-41
lines changed

3 files changed

+91
-41
lines changed

.circleci/config.yml

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

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Lint
2+
3+
on: [pull_request]
4+
5+
concurrency:
6+
group: lint-${{ github.ref_name }}
7+
cancel-in-progress: ${{ github.ref_name != 'master' }}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
ruby:
14+
name: Check Ruby
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
- name: Install Ruby and gems
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: "3.4"
23+
bundler-cache: true
24+
- name: Lint Ruby files
25+
run: bundle exec rubocop -ESP

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)