Skip to content

Commit 23c4ff6

Browse files
authored
Merge pull request #6 from Fileboost/v0.2
v 0.2.0
2 parents c447c28 + f05bdae commit 23c4ff6

27 files changed

+1917
-101
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: CI
33
on:
44
pull_request:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77

88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414

1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
@@ -23,33 +23,37 @@ jobs:
2323

2424
test:
2525
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
rails-version: ["rails-7-1", "rails-7-2", "rails-8-0"]
2630

27-
# services:
28-
# redis:
29-
# image: redis
30-
# ports:
31-
# - 6379:6379
32-
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
3331
steps:
3432
- name: Install packages
35-
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config google-chrome-stable
33+
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config
3634

3735
- name: Checkout code
38-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3937

4038
- name: Set up Ruby
4139
uses: ruby/setup-ruby@v1
4240
with:
43-
ruby-version: ruby-3.4.5
44-
bundler-cache: true
41+
ruby-version: "3.3"
42+
bundler-cache: false
43+
44+
- name: Install dependencies
45+
run: bundle install
46+
47+
- name: Generate Appraisal gemfiles
48+
run: bundle exec appraisal install
4549

4650
- name: Run tests
47-
run: bundle exec rspec
51+
run: bundle exec appraisal ${{ matrix.rails-version }} rspec
4852

4953
- name: Keep screenshots from failed system tests
5054
uses: actions/upload-artifact@v4
5155
if: failure()
5256
with:
53-
name: screenshots
57+
name: screenshots-${{ matrix.rails-version }}
5458
path: ${{ github.workspace }}/tmp/screenshots
5559
if-no-files-found: ignore

Appraisals

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Appraisals file for testing against multiple Rails versions
2+
3+
appraise "rails-7-1" do
4+
gem "rails", "~> 7.1.0"
5+
gem "activestorage", "~> 7.1.0"
6+
end
7+
8+
appraise "rails-7-2" do
9+
gem "rails", "~> 7.2.0"
10+
gem "activestorage", "~> 7.2.0"
11+
end
12+
13+
appraise "rails-8-0" do
14+
gem "rails", "~> 8.0.0"
15+
gem "activestorage", "~> 8.0.0"
16+
end

Gemfile.lock

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
fileboost (0.1.5)
5-
activestorage (>= 6.0)
4+
fileboost (0.2.0.rc1)
5+
activestorage (>= 7)
66

77
GEM
88
remote: https://rubygems.org/
@@ -78,6 +78,10 @@ GEM
7878
securerandom (>= 0.3)
7979
tzinfo (~> 2.0, >= 2.0.5)
8080
uri (>= 0.13.1)
81+
appraisal (2.5.0)
82+
bundler
83+
rake
84+
thor (>= 0.14.0)
8185
ast (2.4.3)
8286
base64 (0.3.0)
8387
benchmark (0.4.1)
@@ -129,10 +133,22 @@ GEM
129133
net-smtp (0.5.1)
130134
net-protocol
131135
nio4r (2.7.4)
136+
nokogiri (1.18.9-aarch64-linux-gnu)
137+
racc (~> 1.4)
138+
nokogiri (1.18.9-aarch64-linux-musl)
139+
racc (~> 1.4)
140+
nokogiri (1.18.9-arm-linux-gnu)
141+
racc (~> 1.4)
142+
nokogiri (1.18.9-arm-linux-musl)
143+
racc (~> 1.4)
132144
nokogiri (1.18.9-arm64-darwin)
133145
racc (~> 1.4)
146+
nokogiri (1.18.9-x86_64-darwin)
147+
racc (~> 1.4)
134148
nokogiri (1.18.9-x86_64-linux-gnu)
135149
racc (~> 1.4)
150+
nokogiri (1.18.9-x86_64-linux-musl)
151+
racc (~> 1.4)
136152
parallel (1.27.0)
137153
parser (3.3.9.0)
138154
ast (~> 2.4.1)
@@ -148,7 +164,7 @@ GEM
148164
psych (5.2.6)
149165
date
150166
stringio
151-
puma (7.0.1)
167+
puma (7.0.2)
152168
nio4r (~> 2.0)
153169
racc (1.8.1)
154170
rack (3.2.1)
@@ -247,16 +263,22 @@ GEM
247263
rubocop-rails (>= 2.30)
248264
ruby-progressbar (1.13.0)
249265
securerandom (0.4.1)
266+
sqlite3 (2.7.3-aarch64-linux-gnu)
267+
sqlite3 (2.7.3-aarch64-linux-musl)
268+
sqlite3 (2.7.3-arm-linux-gnu)
269+
sqlite3 (2.7.3-arm-linux-musl)
250270
sqlite3 (2.7.3-arm64-darwin)
271+
sqlite3 (2.7.3-x86_64-darwin)
251272
sqlite3 (2.7.3-x86_64-linux-gnu)
273+
sqlite3 (2.7.3-x86_64-linux-musl)
252274
stringio (3.1.7)
253275
thor (1.4.0)
254276
timeout (0.4.3)
255277
tzinfo (2.0.6)
256278
concurrent-ruby (~> 1.0)
257-
unicode-display_width (3.1.5)
258-
unicode-emoji (~> 4.0, >= 4.0.4)
259-
unicode-emoji (4.0.4)
279+
unicode-display_width (3.2.0)
280+
unicode-emoji (~> 4.1)
281+
unicode-emoji (4.1.0)
260282
uri (1.0.3)
261283
useragent (0.16.11)
262284
websocket-driver (0.8.0)
@@ -266,21 +288,28 @@ GEM
266288
zeitwerk (2.7.3)
267289

268290
PLATFORMS
291+
aarch64-linux-gnu
292+
aarch64-linux-musl
293+
arm-linux-gnu
294+
arm-linux-musl
269295
arm64-darwin
270-
x86_64-linux
296+
x86_64-darwin
297+
x86_64-linux-gnu
298+
x86_64-linux-musl
271299

272300
DEPENDENCIES
273-
bundler (~> 2)
301+
appraisal (~> 2.5)
302+
bundler (>= 2.1, < 2.7)
274303
combustion (~> 1)
275304
fileboost!
276305
propshaft
277306
puma
278-
rails (~> 8.0.0)
307+
rails (>= 7)
279308
rake (~> 13.0)
280309
rspec (~> 3.0)
281310
rspec-rails (~> 6.0)
282311
rubocop-rails-omakase
283-
sqlite3 (~> 2.0, >= 0)
312+
sqlite3
284313

285314
BUNDLED WITH
286-
2.7.1
315+
2.6.9

0 commit comments

Comments
 (0)