Skip to content

Commit 1781812

Browse files
committed
Added GitHub Actions status badges.
Fix Danger.systems.
1 parent 4508098 commit 1781812

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

.github/workflows/danger.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ name: danger
33
on: [pull_request]
44
jobs:
55
danger:
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
8+
- uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
911
- name: Set up Ruby
1012
uses: ruby/setup-ruby@v1
1113
with:
1214
ruby-version: 2.6
1315
bundler-cache: true
1416
- name: Run Danger
17+
env:
18+
BUNDLE_GEMFILE: Gemfile.danger
1519
run: |
20+
bundle install
1621
# the personal token is public, this is ok, base64 encode to avoid tripping Github
1722
TOKEN=$(echo -n NWY1ZmM5MzEyMzNlYWY4OTZiOGU3MmI3MWQ3Mzk0MzgxMWE4OGVmYwo= | base64 --decode)
1823
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose

Gemfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ group :development, :test do
2626
gem 'database_cleaner', '~> 1.8.5'
2727
gem 'fabrication'
2828
gem 'faker'
29+
gem 'faraday', '0.17.5'
2930
gem 'hyperclient', '~> 0.9.3'
3031
gem 'rack-server-pages'
3132
gem 'rack-test'
@@ -37,8 +38,3 @@ group :development, :test do
3738
gem 'webmock'
3839
gem 'webrick', '~> 1.6.1'
3940
end
40-
41-
group :test do
42-
gem 'danger-toc', '~> 0.2.0', require: false
43-
gem 'slack-ruby-danger', '~> 0.1.0', require: false
44-
end

Gemfile.danger

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
group :test do
4+
gem 'danger-toc', '~> 0.2.0', require: false
5+
gem 'slack-ruby-danger', '~> 0.2.0', require: false
6+
end

README.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,36 @@ Slack Ruby Bot Server
33

44
[![Gem Version](https://badge.fury.io/rb/slack-ruby-bot-server.svg)](https://badge.fury.io/rb/slack-ruby-bot-server)
55
[![Code Climate](https://codeclimate.com/github/slack-ruby/slack-ruby-bot-server.svg)](https://codeclimate.com/github/slack-ruby/slack-ruby-bot-server)
6+
[![mongodb](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/test-mongodb.yml/badge.svg)](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/test-mongodb.yml)
7+
[![postgresql](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/test-postgresql.yml/badge.svg)](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/test-postgresql.yml)
8+
[![rubocop](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/rubocop.yml/badge.svg)](https://github.com/slack-ruby/slack-ruby-bot-server/actions/workflows/rubocop.yml)
69

710
Build a complete Slack bot service with Slack button integration, in Ruby.
811

912
## Table of Contents
1013

11-
- [Slack Ruby Bot Server](#slack-ruby-bot-server)
12-
- [Table of Contents](#table-of-contents)
13-
- [What is this?](#what-is-this)
14-
- [Stable Release](#stable-release)
15-
- [Make Your Own](#make-your-own)
16-
- [Usage](#usage)
17-
- [Storage](#storage)
18-
- [MongoDB](#mongodb)
19-
- [ActiveRecord](#activerecord)
20-
- [OAuth Version and Scopes](#oauth-version-and-scopes)
21-
- [Slack App](#slack-app)
22-
- [API](#api)
23-
- [App](#app)
24-
- [Service Manager](#service-manager)
25-
- [Lifecycle Callbacks](#lifecycle-callbacks)
26-
- [Service Timers](#service-timers)
27-
- [Extensions](#extensions)
28-
- [Service Class](#service-class)
29-
- [HTML Templates](#html-templates)
30-
- [Access Tokens](#access-tokens)
31-
- [Sample Bots Using Slack Ruby Bot Server](#sample-bots-using-slack-ruby-bot-server)
32-
- [Slack Bots with Granular Permissions](#slack-bots-with-granular-permissions)
33-
- [Legacy Slack Bots](#legacy-slack-bots)
34-
- [Copyright & License](#copyright--license)
14+
- [What is this?](#what-is-this)
15+
- [Stable Release](#stable-release)
16+
- [Make Your Own](#make-your-own)
17+
- [Usage](#usage)
18+
- [Storage](#storage)
19+
- [MongoDB](#mongodb)
20+
- [ActiveRecord](#activerecord)
21+
- [OAuth Version and Scopes](#oauth-version-and-scopes)
22+
- [Slack App](#slack-app)
23+
- [API](#api)
24+
- [App](#app)
25+
- [Service Manager](#service-manager)
26+
- [Lifecycle Callbacks](#lifecycle-callbacks)
27+
- [Service Timers](#service-timers)
28+
- [Extensions](#extensions)
29+
- [Service Class](#service-class)
30+
- [HTML Templates](#html-templates)
31+
- [Access Tokens](#access-tokens)
32+
- [Sample Bots Using Slack Ruby Bot Server](#sample-bots-using-slack-ruby-bot-server)
33+
- [Slack Bots with Granular Permissions](#slack-bots-with-granular-permissions)
34+
- [Legacy Slack Bots](#legacy-slack-bots)
35+
- [Copyright & License](#copyright--license)
3536

3637
## What is this?
3738

0 commit comments

Comments
 (0)