File tree Expand file tree Collapse file tree 7 files changed +220
-0
lines changed Expand file tree Collapse file tree 7 files changed +220
-0
lines changed Original file line number Diff line number Diff line change 27
27
run : |
28
28
docker-compose run --rm test_5_2 bundle exec rake db:schema:load
29
29
docker-compose run --rm test_5_2 bundle exec rspec spec/test
30
+ test_5_1 :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - name : Run tests
35
+ run : |
36
+ docker-compose run --rm test_5_1 bundle exec rake db:schema:load
37
+ docker-compose run --rm test_5_1 bundle exec rspec spec/test
38
+ test_5_0 :
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ - name : Run tests
43
+ run : |
44
+ docker-compose run --rm test_5_0 bundle exec rake db:schema:load
45
+ docker-compose run --rm test_5_0 bundle exec rspec spec/test
Original file line number Diff line number Diff line change
1
+ FROM ruby:2.7.2-alpine3.12
2
+
3
+ RUN gem install bundler:2.1.4
4
+
5
+ RUN apk update --no-cache && \
6
+ apk add build-base postgresql-dev git nodejs yarn tzdata bash sqlite-dev && \
7
+ mkdir -p /app
8
+
9
+ WORKDIR /app
10
+
11
+ COPY ./lib/ /app/lib/
12
+ COPY matestack-ui-core.gemspec /app/
13
+ COPY Gemfile.5.0 /app/Gemfile
14
+ RUN bundle install
15
+
16
+ COPY package.json yarn* /app/
17
+ RUN yarn install
18
+
19
+ RUN apk update && apk upgrade \
20
+ && echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
21
+ && echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
22
+ && apk add --no-cache \
23
+ chromium@edge \
24
+ nss@edge \
25
+ && rm -rf /var/lib/apt/lists/* \
26
+ /var/cache/apk/* \
27
+ /usr/share/man \
28
+ /tmp/*
29
+
30
+ RUN apk add chromium-chromedriver@edge
31
+
32
+ ENV CHROME_BIN=/usr/bin/chromium-browser \
33
+ CHROME_PATH=/usr/lib/chromium/
34
+
35
+ RUN mv Gemfile _Gemfile
36
+ RUN mv Gemfile.lock _Gemfile.lock
37
+ COPY . /app
38
+ RUN rm Gemfile
39
+ RUN rm Gemfile.lock
40
+ RUN mv _Gemfile Gemfile
41
+ RUN mv _Gemfile.lock Gemfile.lock
42
+
43
+ RUN rm /app/spec/dummy/config/application.rb
44
+ RUN mv /app/spec/dummy/config/application.5.0_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
1
+ FROM ruby:2.7.2-alpine3.12
2
+
3
+ RUN gem install bundler:2.1.4
4
+
5
+ RUN apk update --no-cache && \
6
+ apk add build-base postgresql-dev git nodejs yarn tzdata bash sqlite-dev && \
7
+ mkdir -p /app
8
+
9
+ WORKDIR /app
10
+
11
+ COPY ./lib/ /app/lib/
12
+ COPY matestack-ui-core.gemspec /app/
13
+ COPY Gemfile.5.1 /app/Gemfile
14
+ RUN bundle install
15
+
16
+ COPY package.json yarn* /app/
17
+ RUN yarn install
18
+
19
+ RUN apk update && apk upgrade \
20
+ && echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
21
+ && echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
22
+ && apk add --no-cache \
23
+ chromium@edge \
24
+ nss@edge \
25
+ && rm -rf /var/lib/apt/lists/* \
26
+ /var/cache/apk/* \
27
+ /usr/share/man \
28
+ /tmp/*
29
+
30
+ RUN apk add chromium-chromedriver@edge
31
+
32
+ ENV CHROME_BIN=/usr/bin/chromium-browser \
33
+ CHROME_PATH=/usr/lib/chromium/
34
+
35
+ RUN mv Gemfile _Gemfile
36
+ RUN mv Gemfile.lock _Gemfile.lock
37
+ COPY . /app
38
+ RUN rm Gemfile
39
+ RUN rm Gemfile.lock
40
+ RUN mv _Gemfile Gemfile
41
+ RUN mv _Gemfile.lock Gemfile.lock
42
+
43
+ RUN rm /app/spec/dummy/config/application.rb
44
+ RUN mv /app/spec/dummy/config/application.5.1_rb /app/spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ # Declare your gem's dependencies in matestack-ui-core.gemspec.
5
+ # Bundler will treat runtime dependencies like base dependencies, and
6
+ # development dependencies will be added by default to the :development group.
7
+ gemspec
8
+
9
+ # Declare any dependencies that are still in development here instead of in
10
+ # your gemspec. These might include edge Rails or gems from your path or
11
+ # Git. Remember to move these dependencies to your gemspec before releasing
12
+ # your gem to rubygems.org.
13
+
14
+ gem 'rails', '5.0.7.2'
15
+
16
+ gem "trailblazer-cells"
17
+ gem "cells-rails"
18
+ gem "cells-haml"
19
+
20
+ group :development, :test do
21
+ gem 'rspec-rails', '~> 3.8'
22
+ gem 'capybara'
23
+ gem 'webpacker', '~> 4.0'
24
+ gem 'pg', '>= 0.18', '< 2.0'
25
+ gem 'selenium-webdriver'
26
+ gem 'puma'
27
+ gem 'simplecov', require: false, group: :test
28
+ gem 'byebug'
29
+ gem 'webmock'
30
+ gem 'turbolinks'
31
+ end
32
+
33
+ group :test do
34
+ gem 'pry-rails'
35
+ gem 'pry-byebug'
36
+ gem "generator_spec"
37
+ gem "rspec-retry" # repeating flaky tests
38
+ gem "rspec-wait", "~> 0.0.9"
39
+ end
Original file line number Diff line number Diff line change
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ # Declare your gem's dependencies in matestack-ui-core.gemspec.
5
+ # Bundler will treat runtime dependencies like base dependencies, and
6
+ # development dependencies will be added by default to the :development group.
7
+ gemspec
8
+
9
+ # Declare any dependencies that are still in development here instead of in
10
+ # your gemspec. These might include edge Rails or gems from your path or
11
+ # Git. Remember to move these dependencies to your gemspec before releasing
12
+ # your gem to rubygems.org.
13
+
14
+ gem 'rails', '5.1.7'
15
+
16
+ gem "trailblazer-cells"
17
+ gem "cells-rails"
18
+ gem "cells-haml"
19
+
20
+ group :development, :test do
21
+ gem 'rspec-rails', '~> 3.8'
22
+ gem 'capybara'
23
+ gem 'webpacker', '~> 4.0'
24
+ gem 'pg', '>= 0.18', '< 2.0'
25
+ gem 'selenium-webdriver'
26
+ gem 'puma'
27
+ gem 'simplecov', require: false, group: :test
28
+ gem 'byebug'
29
+ gem 'webmock'
30
+ gem 'turbolinks'
31
+ end
32
+
33
+ group :test do
34
+ gem 'pry-rails'
35
+ gem 'pry-byebug'
36
+ gem "generator_spec"
37
+ gem "rspec-retry" # repeating flaky tests
38
+ gem "rspec-wait", "~> 0.0.9"
39
+ end
Original file line number Diff line number Diff line change
1
+ require_relative 'boot'
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "matestack/ui/core"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Initialize configuration defaults for originally generated Rails version.
11
+ config.load_defaults 5.0
12
+
13
+ # Settings in config/environments/* take precedence over those specified here.
14
+ # Application configuration can go into files in config/initializers
15
+ # -- all .rb files in that directory are automatically loaded after loading
16
+ # the framework and any gems in your application.
17
+ # config.eager_load_paths += %W( #{config.root}/app/matestack/registry )
18
+ end
19
+ end
Original file line number Diff line number Diff line change
1
+ require_relative 'boot'
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "matestack/ui/core"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Initialize configuration defaults for originally generated Rails version.
11
+ config.load_defaults 5.1
12
+
13
+ # Settings in config/environments/* take precedence over those specified here.
14
+ # Application configuration can go into files in config/initializers
15
+ # -- all .rb files in that directory are automatically loaded after loading
16
+ # the framework and any gems in your application.
17
+ # config.eager_load_paths += %W( #{config.root}/app/matestack/registry )
18
+ end
19
+ end
You can’t perform that action at this time.
0 commit comments