From 1f31c3edde6eaac4df4275120e94c7e30aac2258 Mon Sep 17 00:00:00 2001 From: duffn <3457341+duffn@users.noreply.github.com> Date: Sat, 18 Mar 2023 08:19:57 -0600 Subject: [PATCH 1/2] Migrate to GitHub Actions --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 2 files changed, 36 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dcc58a2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Tests + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Firefox + uses: browser-actions/setup-firefox@v1 + with: + firefox-version: "54.0" + - name: Download geckodriver + uses: browser-actions/setup-geckodriver@latest + with: + geckodriver-version: "0.18.0" + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.6.6" + bundler-cache: true + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.8.0 + with: + mongodb-version: "5" + mongodb-db: bot-server_test + - name: Run tests + uses: GabrielBB/xvfb-action@v1 + with: + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 384e12e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -rvm: - - 2.6.6 - -language: ruby - -cache: bundler - -services: - - mongodb - - xvfb - -addons: - firefox: 54.0 - -before_install: - - wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz - - mkdir geckodriver - - tar -xzf geckodriver-v0.18.0-linux64.tar.gz -C geckodriver - - export PATH=$PATH:$PWD/geckodriver From 98039090b093c491e77d41f974de4a55febb59c1 Mon Sep 17 00:00:00 2001 From: duffn <3457341+duffn@users.noreply.github.com> Date: Sat, 18 Mar 2023 09:31:09 -0600 Subject: [PATCH 2/2] Add badge to README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dfc047c..9eb5148 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -Slack Ruby Bot Server -===================== +# Slack Ruby Bot Server -[![Build Status](https://travis-ci.org/slack-ruby/slack-ruby-bot-server-sample.svg?branch=master)](https://travis-ci.org/slack-ruby/slack-ruby-bot-server-sample) +[![test](https://github.com/slack-ruby/slack-ruby-bot-server-sample/actions/workflows/test.yml/badge.svg)](https://github.com/slack-ruby/slack-ruby-bot-server-sample/actions/workflows/test.yml) ### What is this?