File tree Expand file tree Collapse file tree 6 files changed +67
-47
lines changed Expand file tree Collapse file tree 6 files changed +67
-47
lines changed Original file line number Diff line number Diff line change
1
+ name : Danger
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ lint :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - name : Set up Ruby
13
+ uses : ruby/setup-ruby@v1
14
+ with :
15
+ ruby-version : " 2.5.6"
16
+ bundler-cache : true
17
+ - name : Run Danger
18
+ run : |
19
+ # the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
20
+ TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
21
+ DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ continue-on-error : ${{ (matrix.grape-swagger.experimental) || (matrix.ruby.experimental) }}
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ grape-swagger :
15
+ - { version: "0.8.0", experimental: false }
16
+ - { version: "0.9.0", experimental: false }
17
+ - { version: "0.11.0", experimental: false }
18
+ - { version: "0.20.2", experimental: false }
19
+ - { version: "0.33.0", experimental: false }
20
+ - { version: "HEAD", experimental: true }
21
+ ruby :
22
+ - { version: "2.5.6", experimental: false }
23
+ - { version: "ruby-head", experimental: true }
24
+ - { version: "jruby-head", experimental: true }
25
+ env :
26
+ GRAPE_SWAGGER_VERSION : ${{ matrix.grape-swagger.version }}
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
34
+ - name : Setup Firefox
35
+ uses : browser-actions/setup-firefox@v1
36
+ with :
37
+ firefox-version : " 54.0"
38
+ - uses : browser-actions/setup-geckodriver@latest
39
+ with :
40
+ geckodriver-version : " 0.18.0"
41
+ - uses : GabrielBB/xvfb-action@v1
42
+ with :
43
+ run : bundle exec rake spec
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
### Next Release
2
2
3
+ * [ #105 ] ( https://github.com/ruby-grape/grape-swagger-rails/pull/105 ) : Migrate to GitHub Actions - [ @duffn ] ( https://github.com/duffn ) .
3
4
* [ #98 ] ( https://github.com/ruby-grape/grape-swagger-rails/pull/98 ) : Fix: test against Rails 6 - [ @dblock ] ( https://github.com/dblock ) .
4
5
5
6
* Your contribution here.
Original file line number Diff line number Diff line change 22
22
end
23
23
24
24
group :development , :test do
25
- gem 'ruby-grape-danger' , '~> 0.1 .0' , require : false
25
+ gem 'ruby-grape-danger' , '~> 0.2 .0' , require : false
26
26
gem 'rake'
27
27
gem 'rspec-rails'
28
28
gem 'capybara'
Original file line number Diff line number Diff line change 1
1
# GrapeSwaggerRails
2
2
3
3
[ ![ Gem Version] ( https://badge.fury.io/rb/grape-swagger-rails.svg )] ( http://badge.fury.io/rb/grape-swagger-rails )
4
- [ ![ Build Status ] ( https://travis-ci.org /ruby-grape/grape-swagger-rails.svg )] ( https://travis-ci.org /ruby-grape/grape-swagger-rails )
4
+ [ ![ Test ] ( https://github.com /ruby-grape/grape-swagger-rails/workflows/test/badge .svg?branch=master )] ( https://github.com /ruby-grape/grape-swagger-rails/actions )
5
5
[ ![ Code Climate] ( https://codeclimate.com/github/ruby-grape/grape-swagger-rails/badges/gpa.svg )] ( https://codeclimate.com/github/ruby-grape/grape-swagger-rails )
6
6
7
7
Swagger UI as Rails Engine for grape-swagger gem.
You can’t perform that action at this time.
0 commit comments