Skip to content

Commit 7ed74d1

Browse files
author
Chris Smith
committed
Merge branch 'staging'
2 parents f0add5b + d24c7fb commit 7ed74d1

63 files changed

Lines changed: 1220 additions & 398 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Ruby
2+
3+
env:
4+
TZ: Europe/London
5+
6+
on:
7+
- push
8+
- pull_request
9+
10+
jobs:
11+
test:
12+
13+
runs-on: ubuntu-latest
14+
15+
services:
16+
mysql:
17+
image: mysql:5.7
18+
env:
19+
MYSQL_DATABASE: mixtio_test
20+
MYSQL_ROOT_PASSWORD: root
21+
ports:
22+
- 3306
23+
options: >-
24+
--health-cmd="mysqladmin ping"
25+
--health-interval=10s
26+
--health-timeout=5s
27+
--health-retries=3
28+
29+
env:
30+
RAILS_ENV: test
31+
DB_PORT: 3306
32+
DB_PASSWORD: root
33+
34+
steps:
35+
- name: Start MySQL
36+
run: sudo service mysql start
37+
- uses: actions/checkout@v2
38+
- name: Set up Ruby
39+
uses: ruby/setup-ruby@v1
40+
with:
41+
bundler-cache: true # Runs bundle install and caches gems. See the ruby_test.yml
42+
# example if you need more control over bundler.
43+
- name: Set up environment
44+
run: |
45+
bundle exec rails db:setup
46+
47+
- name: Run tests
48+
run: bundle exec rspec

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ node_modules
1414

1515
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
1616
config/initializers/secret_token.rb
17-
config/secrets.yml
18-
config/ldap.yml
19-
config/print_service.yml
20-
config/mailer.yml
2117

2218
## Environment normalisation:
2319
/.bundle

.travis.yml

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

Gemfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ git_source(:github) do |repo_name|
77
end
88

99
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10-
gem 'rails', '~> 6.0'
10+
gem 'rails', '~> 6.1.0'
11+
gem 'mysql2', '~> 0.5.0'
1112
gem 'bootsnap'
1213
gem 'rails-controller-testing'
1314
# Use SCSS for stylesheets
@@ -16,8 +17,6 @@ gem 'sass-rails'
1617
gem 'uglifier'
1718
# Use CoffeeScript for .coffee assets and views
1819
gem 'coffee-rails'
19-
# See https://github.com/rails/execjs#readme for more supported runtimes
20-
# gem 'therubyracer', platforms: :ruby
2120
gem 'launchy'
2221
# Use jquery as the JavaScript library
2322
gem 'jquery-rails'
@@ -61,14 +60,12 @@ end
6160

6261
group :test do
6362
gem 'capybara'
64-
gem 'selenium-webdriver'
63+
gem 'webdrivers', '~> 4.0', require: false
6564
gem 'database_cleaner'
6665
gem 'rake'
6766
end
6867

6968
group :development, :test do
70-
# Use sqlite3 as the database for Active Record
71-
gem 'sqlite3'
7269
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
7370
gem 'byebug'
7471
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
@@ -77,14 +74,9 @@ group :development, :test do
7774
gem 'rspec-rails'
7875
gem 'with_model'
7976
gem 'raml_ruby'
80-
# Headless browser testing
81-
gem 'phantomjs'
82-
gem 'poltergeist'
83-
gem 'teaspoon-jasmine'
8477
gem 'listen'
8578
end
8679

8780
group :deployment do
8881
gem 'therubyracer'
89-
gem 'mysql2', '~> 0.5.0'
9082
end

0 commit comments

Comments
 (0)