Skip to content

Commit 8801dfd

Browse files
author
Shaun Carlson
committed
add github workflow to run tests
1 parent 30c62bb commit 8801dfd

8 files changed

Lines changed: 288 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This workflow uses actions that are not certified by GitHub. They are
2+
# provided by a third-party and are governed by separate terms of service,
3+
# privacy policy, and support documentation.
4+
#
5+
# This workflow will install a prebuilt Ruby version, install dependencies, and
6+
# run tests and linters.
7+
name: "active_remote-cached"
8+
on:
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
ruby-version: [ '3.2', '3.1', '3.0', '2.7', 'jruby-9.4' ]
19+
gemfile: [ 'rails60', 'rails61', 'rails70' ]
20+
env:
21+
RAILS_ENV: test
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
# Add or replace dependency steps here
26+
- name: Install Ruby and gems
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
bundler-cache: true
30+
ruby-version: ${{ matrix.ruby-version }}
31+
env:
32+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
33+
# Add or replace test runners here
34+
- name: Run tests
35+
run: bundle exec rake test
36+
env:
37+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
38+
old_tests:
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
ruby-version: [ '2.6', 'jruby-9.3' ]
43+
gemfile: [ 'rails60', 'rails61' ]
44+
env:
45+
RAILS_ENV: test
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@v3
49+
# Add or replace dependency steps here
50+
- name: Install Ruby and gems
51+
uses: ruby/setup-ruby@v1
52+
with:
53+
bundler-cache: true
54+
ruby-version: ${{ matrix.ruby-version }}
55+
env:
56+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
57+
# Add or replace test runners here
58+
- name: Run tests
59+
run: bundle exec rake test
60+
env:
61+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

gemfiles/rails60.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "activesupport", "~> 6.0.0"
4+
gemspec path: "../"

gemfiles/rails60.gemfile.lock

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
active_remote-cached (0.2.0)
5+
active_remote
6+
activesupport
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
active_remote (6.0.2)
12+
activemodel (~> 6.0.0)
13+
activesupport (~> 6.0.0)
14+
protobuf (>= 3.0)
15+
activemodel (6.0.6.1)
16+
activesupport (= 6.0.6.1)
17+
activesupport (6.0.6.1)
18+
concurrent-ruby (~> 1.0, >= 1.0.2)
19+
i18n (>= 0.7, < 2)
20+
minitest (~> 5.1)
21+
tzinfo (~> 1.1)
22+
zeitwerk (~> 2.2, >= 2.2.2)
23+
coderay (1.1.3)
24+
concurrent-ruby (1.2.2)
25+
ffi (1.15.5-java)
26+
i18n (1.12.0)
27+
concurrent-ruby (~> 1.0)
28+
method_source (1.0.0)
29+
middleware (0.1.0)
30+
minitest (5.18.0)
31+
mocha (2.0.2)
32+
ruby2_keywords (>= 0.0.5)
33+
protobuf (3.10.7)
34+
activesupport (>= 3.2)
35+
middleware
36+
thor
37+
thread_safe
38+
pry (0.14.2)
39+
coderay (~> 1.1)
40+
method_source (~> 1.0)
41+
pry (0.14.2-java)
42+
coderay (~> 1.1)
43+
method_source (~> 1.0)
44+
spoon (~> 0.0)
45+
rake (13.0.6)
46+
ruby2_keywords (0.0.5)
47+
spoon (0.0.6)
48+
ffi
49+
thor (1.2.1)
50+
thread_safe (0.3.6)
51+
thread_safe (0.3.6-java)
52+
tzinfo (1.2.11)
53+
thread_safe (~> 0.1)
54+
zeitwerk (2.6.7)
55+
56+
PLATFORMS
57+
universal-java-1.8
58+
universal-java-11
59+
x86_64-darwin-22
60+
x86_64-linux
61+
62+
DEPENDENCIES
63+
active_remote-cached!
64+
activesupport (~> 6.0.0)
65+
bundler
66+
mocha
67+
pry
68+
rake
69+
70+
BUNDLED WITH
71+
2.4.12

gemfiles/rails61.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "activesupport", "~> 6.1.0"
4+
gemspec path: "../"

gemfiles/rails61.gemfile.lock

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
active_remote-cached (0.2.0)
5+
active_remote
6+
activesupport
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
active_remote (6.1.1)
12+
activemodel (~> 6.1.0)
13+
activesupport (~> 6.1.0)
14+
protobuf (>= 3.0)
15+
activemodel (6.1.7.3)
16+
activesupport (= 6.1.7.3)
17+
activesupport (6.1.7.3)
18+
concurrent-ruby (~> 1.0, >= 1.0.2)
19+
i18n (>= 1.6, < 2)
20+
minitest (>= 5.1)
21+
tzinfo (~> 2.0)
22+
zeitwerk (~> 2.3)
23+
coderay (1.1.3)
24+
concurrent-ruby (1.2.2)
25+
ffi (1.15.5-java)
26+
i18n (1.12.0)
27+
concurrent-ruby (~> 1.0)
28+
method_source (1.0.0)
29+
middleware (0.1.0)
30+
minitest (5.18.0)
31+
mocha (2.0.2)
32+
ruby2_keywords (>= 0.0.5)
33+
protobuf (3.10.7)
34+
activesupport (>= 3.2)
35+
middleware
36+
thor
37+
thread_safe
38+
pry (0.14.2)
39+
coderay (~> 1.1)
40+
method_source (~> 1.0)
41+
pry (0.14.2-java)
42+
coderay (~> 1.1)
43+
method_source (~> 1.0)
44+
spoon (~> 0.0)
45+
rake (13.0.6)
46+
ruby2_keywords (0.0.5)
47+
spoon (0.0.6)
48+
ffi
49+
thor (1.2.1)
50+
thread_safe (0.3.6)
51+
thread_safe (0.3.6-java)
52+
tzinfo (2.0.6)
53+
concurrent-ruby (~> 1.0)
54+
zeitwerk (2.6.7)
55+
56+
PLATFORMS
57+
universal-java-1.8
58+
universal-java-11
59+
x86_64-darwin-22
60+
x86_64-linux
61+
62+
DEPENDENCIES
63+
active_remote-cached!
64+
activesupport (~> 6.1.0)
65+
bundler
66+
mocha
67+
pry
68+
rake
69+
70+
BUNDLED WITH
71+
2.4.12

gemfiles/rails70..gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "activesupport", "~> 7.0.0"
4+
gemspec path: "../"

gemfiles/rails70.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "activesupport", "~> 7.0.0"
4+
gemspec path: "../"

gemfiles/rails70.gemfile.lock

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
active_remote-cached (0.2.0)
5+
active_remote
6+
activesupport
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
active_remote (3.1.2)
12+
activemodel (>= 4.0)
13+
activesupport (>= 4.0)
14+
protobuf (>= 3.0)
15+
activemodel (7.0.4.3)
16+
activesupport (= 7.0.4.3)
17+
activesupport (7.0.4.3)
18+
concurrent-ruby (~> 1.0, >= 1.0.2)
19+
i18n (>= 1.6, < 2)
20+
minitest (>= 5.1)
21+
tzinfo (~> 2.0)
22+
coderay (1.1.3)
23+
concurrent-ruby (1.2.2)
24+
ffi (1.15.5-java)
25+
i18n (1.12.0)
26+
concurrent-ruby (~> 1.0)
27+
method_source (1.0.0)
28+
middleware (0.1.0)
29+
minitest (5.18.0)
30+
mocha (2.0.2)
31+
ruby2_keywords (>= 0.0.5)
32+
protobuf (3.10.7)
33+
activesupport (>= 3.2)
34+
middleware
35+
thor
36+
thread_safe
37+
pry (0.14.2)
38+
coderay (~> 1.1)
39+
method_source (~> 1.0)
40+
pry (0.14.2-java)
41+
coderay (~> 1.1)
42+
method_source (~> 1.0)
43+
spoon (~> 0.0)
44+
rake (13.0.6)
45+
ruby2_keywords (0.0.5)
46+
spoon (0.0.6)
47+
ffi
48+
thor (1.2.1)
49+
thread_safe (0.3.6)
50+
thread_safe (0.3.6-java)
51+
tzinfo (2.0.6)
52+
concurrent-ruby (~> 1.0)
53+
54+
PLATFORMS
55+
universal-java-1.8
56+
universal-java-11
57+
x86_64-darwin-22
58+
x86_64-linux
59+
60+
DEPENDENCIES
61+
active_remote-cached!
62+
activesupport (~> 7.0.0)
63+
bundler
64+
mocha
65+
pry
66+
rake
67+
68+
BUNDLED WITH
69+
2.4.12

0 commit comments

Comments
 (0)