Skip to content

Commit c58411c

Browse files
committed
7.0, 7.1 github actions
1 parent f5acaf9 commit c58411c

File tree

11 files changed

+445
-2
lines changed

11 files changed

+445
-2
lines changed

Diff for: .github/workflows/ruby.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Tests
9+
10+
on: [push, pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
test:
17+
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
ruby-version: ['3.1', '3.2', '3.3']
22+
rails-version: ['gemfiles/rails_7.0.gemfile', 'gemfiles/rails_7.1.gemfile']
23+
24+
env:
25+
BUNDLE_GEMFILE: ${{ matrix.rails-version }}
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: Set up Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby-version }}
33+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34+
- name: Run tests
35+
run: bin/test

Diff for: Appraisals

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
appraise "rails-7.0" do
2+
gem "rails", "~> 7.0.0"
3+
gem "base64"
4+
end
5+
6+
appraise "rails-7.1" do
7+
gem "rails", "~> 7.1.0"
8+
end

Diff for: Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ gem "sqlite3"
1010

1111
# Start debugger with binding.b [https://github.com/ruby/debug]
1212
# gem "debug", ">= 1.0.0"
13+
gem "appraisal"

Diff for: Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ GEM
8181
minitest (>= 5.1)
8282
mutex_m
8383
tzinfo (~> 2.0)
84+
appraisal (2.5.0)
85+
bundler
86+
rake
87+
thor (>= 0.14.0)
8488
base64 (0.2.0)
8589
bigdecimal (3.1.7)
8690
builder (3.2.4)
@@ -185,6 +189,7 @@ PLATFORMS
185189
arm64-darwin
186190

187191
DEPENDENCIES
192+
appraisal
188193
custom_elements-rails!
189194
puma
190195
sqlite3

Diff for: custom_elements-rails.gemspec

+2
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ Gem::Specification.new do |spec|
2020
end
2121

2222
spec.add_dependency "rails", ">= 7"
23+
24+
spec.add_development_dependency "appraisal"
2325
end

Diff for: gemfiles/rails_7.0.gemfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "puma"
6+
gem "sqlite3"
7+
gem "appraisal"
8+
gem "rails", "~> 7.0.0"
9+
gem "base64"
10+
11+
gemspec path: "../"

Diff for: gemfiles/rails_7.0.gemfile.lock

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
custom_elements-rails (0.1.2)
5+
rails (>= 7)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actioncable (7.0.8.1)
11+
actionpack (= 7.0.8.1)
12+
activesupport (= 7.0.8.1)
13+
nio4r (~> 2.0)
14+
websocket-driver (>= 0.6.1)
15+
actionmailbox (7.0.8.1)
16+
actionpack (= 7.0.8.1)
17+
activejob (= 7.0.8.1)
18+
activerecord (= 7.0.8.1)
19+
activestorage (= 7.0.8.1)
20+
activesupport (= 7.0.8.1)
21+
mail (>= 2.7.1)
22+
net-imap
23+
net-pop
24+
net-smtp
25+
actionmailer (7.0.8.1)
26+
actionpack (= 7.0.8.1)
27+
actionview (= 7.0.8.1)
28+
activejob (= 7.0.8.1)
29+
activesupport (= 7.0.8.1)
30+
mail (~> 2.5, >= 2.5.4)
31+
net-imap
32+
net-pop
33+
net-smtp
34+
rails-dom-testing (~> 2.0)
35+
actionpack (7.0.8.1)
36+
actionview (= 7.0.8.1)
37+
activesupport (= 7.0.8.1)
38+
rack (~> 2.0, >= 2.2.4)
39+
rack-test (>= 0.6.3)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
42+
actiontext (7.0.8.1)
43+
actionpack (= 7.0.8.1)
44+
activerecord (= 7.0.8.1)
45+
activestorage (= 7.0.8.1)
46+
activesupport (= 7.0.8.1)
47+
globalid (>= 0.6.0)
48+
nokogiri (>= 1.8.5)
49+
actionview (7.0.8.1)
50+
activesupport (= 7.0.8.1)
51+
builder (~> 3.1)
52+
erubi (~> 1.4)
53+
rails-dom-testing (~> 2.0)
54+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
55+
activejob (7.0.8.1)
56+
activesupport (= 7.0.8.1)
57+
globalid (>= 0.3.6)
58+
activemodel (7.0.8.1)
59+
activesupport (= 7.0.8.1)
60+
activerecord (7.0.8.1)
61+
activemodel (= 7.0.8.1)
62+
activesupport (= 7.0.8.1)
63+
activestorage (7.0.8.1)
64+
actionpack (= 7.0.8.1)
65+
activejob (= 7.0.8.1)
66+
activerecord (= 7.0.8.1)
67+
activesupport (= 7.0.8.1)
68+
marcel (~> 1.0)
69+
mini_mime (>= 1.1.0)
70+
activesupport (7.0.8.1)
71+
concurrent-ruby (~> 1.0, >= 1.0.2)
72+
i18n (>= 1.6, < 2)
73+
minitest (>= 5.1)
74+
tzinfo (~> 2.0)
75+
appraisal (2.5.0)
76+
bundler
77+
rake
78+
thor (>= 0.14.0)
79+
base64 (0.2.0)
80+
builder (3.2.4)
81+
concurrent-ruby (1.2.3)
82+
crass (1.0.6)
83+
date (3.3.4)
84+
erubi (1.12.0)
85+
globalid (1.2.1)
86+
activesupport (>= 6.1)
87+
i18n (1.14.4)
88+
concurrent-ruby (~> 1.0)
89+
loofah (2.22.0)
90+
crass (~> 1.0.2)
91+
nokogiri (>= 1.12.0)
92+
mail (2.8.1)
93+
mini_mime (>= 0.1.1)
94+
net-imap
95+
net-pop
96+
net-smtp
97+
marcel (1.0.4)
98+
method_source (1.0.0)
99+
mini_mime (1.1.5)
100+
minitest (5.22.3)
101+
net-imap (0.4.10)
102+
date
103+
net-protocol
104+
net-pop (0.1.2)
105+
net-protocol
106+
net-protocol (0.2.2)
107+
timeout
108+
net-smtp (0.5.0)
109+
net-protocol
110+
nio4r (2.7.1)
111+
nokogiri (1.16.4-arm64-darwin)
112+
racc (~> 1.4)
113+
puma (6.4.2)
114+
nio4r (~> 2.0)
115+
racc (1.7.3)
116+
rack (2.2.8.1)
117+
rack-test (2.1.0)
118+
rack (>= 1.3)
119+
rails (7.0.8.1)
120+
actioncable (= 7.0.8.1)
121+
actionmailbox (= 7.0.8.1)
122+
actionmailer (= 7.0.8.1)
123+
actionpack (= 7.0.8.1)
124+
actiontext (= 7.0.8.1)
125+
actionview (= 7.0.8.1)
126+
activejob (= 7.0.8.1)
127+
activemodel (= 7.0.8.1)
128+
activerecord (= 7.0.8.1)
129+
activestorage (= 7.0.8.1)
130+
activesupport (= 7.0.8.1)
131+
bundler (>= 1.15.0)
132+
railties (= 7.0.8.1)
133+
rails-dom-testing (2.2.0)
134+
activesupport (>= 5.0.0)
135+
minitest
136+
nokogiri (>= 1.6)
137+
rails-html-sanitizer (1.6.0)
138+
loofah (~> 2.21)
139+
nokogiri (~> 1.14)
140+
railties (7.0.8.1)
141+
actionpack (= 7.0.8.1)
142+
activesupport (= 7.0.8.1)
143+
method_source
144+
rake (>= 12.2)
145+
thor (~> 1.0)
146+
zeitwerk (~> 2.5)
147+
rake (13.2.1)
148+
sqlite3 (1.7.3-arm64-darwin)
149+
thor (1.3.1)
150+
timeout (0.4.1)
151+
tzinfo (2.0.6)
152+
concurrent-ruby (~> 1.0)
153+
websocket-driver (0.7.6)
154+
websocket-extensions (>= 0.1.0)
155+
websocket-extensions (0.1.5)
156+
zeitwerk (2.6.13)
157+
158+
PLATFORMS
159+
arm64-darwin
160+
161+
DEPENDENCIES
162+
appraisal
163+
base64
164+
custom_elements-rails!
165+
puma
166+
rails (~> 7.0.0)
167+
sqlite3
168+
169+
BUNDLED WITH
170+
2.5.9

Diff for: gemfiles/rails_7.1.gemfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "puma"
6+
gem "sqlite3"
7+
gem "appraisal"
8+
gem "rails", "~> 7.1.0"
9+
10+
gemspec path: "../"

0 commit comments

Comments
 (0)