Skip to content

Commit f70695f

Browse files
authored
add github workflow (#6)
* add github workflow * switch to json 1.8.6 * switch to puma 3.12.6 * switch to rails 4.2.11.3 * use ruby 2.3
1 parent 82f5462 commit f70695f

File tree

6 files changed

+84
-86
lines changed

6 files changed

+84
-86
lines changed

.c9build.sh

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

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
on:
3+
push:
4+
schedule:
5+
- cron: '0 1 * * 0'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: '2.3'
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 50
17+
- uses: testspace-com/setup-testspace@v1
18+
with:
19+
domain: samples
20+
- uses: actions/cache@v2
21+
with:
22+
path: vendor/bundle
23+
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-gems-
26+
- name: Install
27+
run: |
28+
bundle install --deployment --retry=3 --jobs=4
29+
RAILS_ENV=test bundle exec rake db:migrate
30+
- name: Analyze
31+
run: |
32+
bundle exec rubocop --format emacs --out reports/rubocop.txt || true
33+
bundle exec brakeman -o reports/brakeman.json
34+
bundle exec brakeman_translate_checkstyle_format translate --file="reports/brakeman.json" > reports/brakeman_checkstyle.xml
35+
bundle exec scss-lint --no-color --format=Stats --format=Default --out=reports/scss-lint.txt app/assets/stylesheets/ || true
36+
- name: Test
37+
run: |
38+
CI_REPORTS=reports/test bundle exec rake minitest test
39+
- name: Push
40+
run: |
41+
testspace @.testspace.txt
42+
if: always()

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

3-
gem 'rails', '4.2.2'
3+
gem 'rails', '4.2.11.3'
44
gem 'bcrypt', '3.1.7'
55
gem 'faker', '1.4.2'
66
gem 'carrierwave', '0.10.0'
@@ -23,7 +23,7 @@ group :development, :test do
2323
gem 'pry-byebug', platform: [:ruby_20]
2424
gem 'web-console', '2.0.0.beta3'
2525
gem 'spring', '1.1.3'
26-
26+
2727
# A Ruby static code analyzer.
2828
gem 'rubocop', :require => false
2929
# A static analysis security vulnerability scanner for Ruby on Rails.
@@ -47,5 +47,5 @@ end
4747
group :production do
4848
# gem 'pg', '0.17.1'
4949
gem 'rails_12factor', '0.0.2'
50-
gem 'puma', '3.1.0'
50+
gem 'puma', '3.12.6'
5151
end

Gemfile.lock

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
CFPropertyList (2.3.2)
5-
actionmailer (4.2.2)
6-
actionpack (= 4.2.2)
7-
actionview (= 4.2.2)
8-
activejob (= 4.2.2)
5+
actionmailer (4.2.11.3)
6+
actionpack (= 4.2.11.3)
7+
actionview (= 4.2.11.3)
8+
activejob (= 4.2.11.3)
99
mail (~> 2.5, >= 2.5.4)
1010
rails-dom-testing (~> 1.0, >= 1.0.5)
11-
actionpack (4.2.2)
12-
actionview (= 4.2.2)
13-
activesupport (= 4.2.2)
11+
actionpack (4.2.11.3)
12+
actionview (= 4.2.11.3)
13+
activesupport (= 4.2.11.3)
1414
rack (~> 1.6)
1515
rack-test (~> 0.6.2)
1616
rails-dom-testing (~> 1.0, >= 1.0.5)
17-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
18-
actionview (4.2.2)
19-
activesupport (= 4.2.2)
17+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
18+
actionview (4.2.11.3)
19+
activesupport (= 4.2.11.3)
2020
builder (~> 3.1)
2121
erubis (~> 2.7.0)
2222
rails-dom-testing (~> 1.0, >= 1.0.5)
23-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
24-
activejob (4.2.2)
25-
activesupport (= 4.2.2)
23+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
24+
activejob (4.2.11.3)
25+
activesupport (= 4.2.11.3)
2626
globalid (>= 0.3.0)
27-
activemodel (4.2.2)
28-
activesupport (= 4.2.2)
27+
activemodel (4.2.11.3)
28+
activesupport (= 4.2.11.3)
2929
builder (~> 3.1)
30-
activerecord (4.2.2)
31-
activemodel (= 4.2.2)
32-
activesupport (= 4.2.2)
30+
activerecord (4.2.11.3)
31+
activemodel (= 4.2.11.3)
32+
activesupport (= 4.2.11.3)
3333
arel (~> 6.0)
34-
activesupport (4.2.2)
34+
activesupport (4.2.11.3)
3535
i18n (~> 0.7)
3636
json (~> 1.7, >= 1.7.7)
3737
minitest (~> 5.1)
@@ -215,7 +215,7 @@ GEM
215215
rails-dom-testing (~> 1.0)
216216
railties (>= 4.2.0)
217217
thor (>= 0.14, < 2.0)
218-
json (1.8.3)
218+
json (1.8.6)
219219
listen (3.1.5)
220220
rb-fsevent (~> 0.9, >= 0.9.4)
221221
rb-inotify (~> 0.9, >= 0.9.7)
@@ -258,20 +258,20 @@ GEM
258258
pry-byebug (3.4.0)
259259
byebug (~> 9.0)
260260
pry (~> 0.10)
261-
puma (3.1.0)
261+
puma (3.12.6)
262262
rack (1.6.4)
263263
rack-test (0.6.3)
264264
rack (>= 1.0)
265-
rails (4.2.2)
266-
actionmailer (= 4.2.2)
267-
actionpack (= 4.2.2)
268-
actionview (= 4.2.2)
269-
activejob (= 4.2.2)
270-
activemodel (= 4.2.2)
271-
activerecord (= 4.2.2)
272-
activesupport (= 4.2.2)
265+
rails (4.2.11.3)
266+
actionmailer (= 4.2.11.3)
267+
actionpack (= 4.2.11.3)
268+
actionview (= 4.2.11.3)
269+
activejob (= 4.2.11.3)
270+
activemodel (= 4.2.11.3)
271+
activerecord (= 4.2.11.3)
272+
activesupport (= 4.2.11.3)
273273
bundler (>= 1.3.0, < 2.0)
274-
railties (= 4.2.2)
274+
railties (= 4.2.11.3)
275275
sprockets-rails
276276
rails-deprecated_sanitizer (1.0.3)
277277
activesupport (>= 4.2.0.alpha)
@@ -286,9 +286,9 @@ GEM
286286
rails_stdout_logging
287287
rails_serve_static_assets (0.0.5)
288288
rails_stdout_logging (0.0.5)
289-
railties (4.2.2)
290-
actionpack (= 4.2.2)
291-
activesupport (= 4.2.2)
289+
railties (4.2.11.3)
290+
actionpack (= 4.2.11.3)
291+
activesupport (= 4.2.11.3)
292292
rake (>= 0.8.7)
293293
thor (>= 0.18.1, < 2.0)
294294
rainbow (2.1.0)
@@ -378,8 +378,8 @@ DEPENDENCIES
378378
mini_magick (= 3.8.0)
379379
minitest-reporters (= 1.0.5)
380380
pry-byebug
381-
puma (= 3.1.0)
382-
rails (= 4.2.2)
381+
puma (= 3.12.6)
382+
rails (= 4.2.11.3)
383383
rails_12factor (= 0.0.2)
384384
rubocop
385385
sass-rails (= 5.0.2)

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ We have made a few minor modifications to original project for publishing.
99

1010
* Using a Testspace Project that is `connected` with this GitHub Repo
1111
* Using 3 Online CI services for demonstration purposes only
12-
* Can review the Results at [testspace-samples:ruby.minitest](https://samples.testspace.com/projects/testspace-samples:ruby.minitest)
13-
* Refer to our [Getting Started](https://help.testspace.com/getting-started) help articles for more information
12+
* Can review the Results at [testspace-samples:ruby.minitest](https://samples.testspace.com/projects/testspace-samples:ruby.minitest)
13+
* Refer to our [Help](https://help.testspace.com/) for more information
1414

1515
***
1616
Using Multiple Online CI Services:
1717

18+
![Build](https://github.com/testspace-samples/ruby.minitest/workflows/Build/badge.svg)
1819
[![Build Status](https://travis-ci.org/testspace-samples/ruby.minitest.svg?branch=master)](https://travis-ci.org/testspace-samples/ruby.minitest)
1920
[![CircleCI](https://circleci.com/gh/testspace-samples/ruby.minitest/tree/master.svg?style=svg)](https://circleci.com/gh/testspace-samples/ruby.minitest/tree/master)
20-
[![Run Status](https://api.shippable.com/projects/5a1068f9e366a70700f78956/badge?branch=master)](https://app.shippable.com/github/testspace-samples/ruby.minitest)
21-
[ ![Codeship Status](https://app.codeship.com/projects/eb40a080-6412-0135-6105-4ab105608534/status?branch=master)](https://app.codeship.com/projects/240271)
2221

2322

2423
***
@@ -30,7 +29,7 @@ Using Multiple Online CI Services:
3029

3130
***
3231

33-
Download and configure the Testspace client
32+
Download and configure the Testspace client
3433

3534
<pre>
3635
mkdir -p $HOME/bin

shippable.yml

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

0 commit comments

Comments
 (0)