Skip to content

Commit 1f11340

Browse files
authored
Migrate Travis to GitHub Actions (#33)
* Migrate Travis to GitHub Actions * Update badges
1 parent b0df9cc commit 1f11340

File tree

4 files changed

+52
-22
lines changed

4 files changed

+52
-22
lines changed

.github/workflows/rubocop.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
name: RuboCop
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Ruby
12+
uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: "2.6.5"
15+
bundler-cache: true
16+
- name: Run RuboCop
17+
run: bundle exec rubocop

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
- name: Setup Firefox
12+
uses: browser-actions/setup-firefox@latest
13+
with:
14+
firefox-version: "54.0"
15+
- name: Download geckodriver
16+
uses: browser-actions/setup-geckodriver@latest
17+
with:
18+
geckodriver-version: "0.18.0"
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: "2.6.5"
23+
bundler-cache: true
24+
- name: Start MongoDB
25+
uses: supercharge/[email protected]
26+
with:
27+
mongodb-version: "5"
28+
mongodb-db: shellbot_test
29+
- name: Run tests
30+
uses: GabrielBB/xvfb-action@v1
31+
with:
32+
run: bundle exec rake

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Slack-Shellbot
2-
=============
1+
# Slack-Shellbot
32

43
[![Add to Slack](https://platform.slack-edge.com/img/[email protected])](http://shell.playplay.io)
5-
[![Build Status](https://travis-ci.org/slack-ruby/slack-shellbot.svg)](https://travis-ci.org/slack-ruby/slack-shellbot)
4+
[![rubocop](https://github.com/slack-ruby/slack-shellbot/actions/workflows/rubocop.yml/badge.svg)](https://github.com/slack-ruby/slack-shellbot/actions/workflows/rubocop.yml)
5+
[![test](https://github.com/slack-ruby/slack-shellbot/actions/workflows/test.yml/badge.svg)](https://github.com/slack-ruby/slack-shellbot/actions/workflows/test.yml)
66
[![Code Climate](https://codeclimate.com/github/slack-ruby/slack-shellbot/badges/gpa.svg)](https://codeclimate.com/github/slack-ruby/slack-shellbot)
77

88
A shell bot for Slack. A demo is worth a thousand words.

0 commit comments

Comments
 (0)