Skip to content

Commit

Permalink
try github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jochen-testingbot committed Jan 25, 2024
1 parent 9b177fe commit 99cf22d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test Changes

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.3', head]
name: Ruby ${{ matrix.ruby }} test
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test
run: |
sudo apt-get -yqq install libpq-dev
bundle exec rake test_testingbot
env:
TB_KEY: ${{ secrets.TB_KEY }}
TB_SECRET: ${{ secrets.TB_SECRET }}
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
[![Build Status](https://travis-ci.org/testingbot/ruby-cucumber-example.svg?branch=master)](https://travis-ci.org/testingbot/ruby-cucumber-example)
## TestingBot - Ruby Cucumber

## TestingBot - Cucumber

TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver.
This example demonstrates how to use Ruby with Cucumber to run a test in parallel across several browsers.
TestingBot provides an online grid of browsers and mobile devices to run Automated tests via Selenium WebDriver.
This example demonstrates how to use Ruby with Cucumber to run a test in parallel, across several browsers in the TestingBot cloud.

### Environment Setup

1. Global Dependencies
* Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
* Or Install Ruby with [Homebrew](http://brew.sh/)
* Or Install Ruby with [Homebrew](https://brew.sh)
```
$ brew install ruby
```
Expand All @@ -23,7 +21,7 @@ This example demonstrates how to use Ruby with Cucumber to run a test in paralle
```

2. TestingBot Credentials
* Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members/).
* Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members).
```
$ export TB_KEY=<your TestingBot Key>
$ export TB_SECRET=<your TestingBot Secret>
Expand All @@ -39,17 +37,15 @@ This example demonstrates how to use Ruby with Cucumber to run a test in paralle

* Tests in Parallel:
```
$ rake test_testingbot
$ bundle exec rake test_testingbot
```
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members)

### Resources
##### [TestingBot Documentation](https://testingbot.com/support/)

##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [SeleniumHQ Documentation](https://www.selenium.dev/documentation)

##### [Cucumber Documentation](https://cucumber.io/docs/reference)

##### [Capybara Documentation](http://www.rubydoc.info/github/jnicklas/capybara/master)

##### [Ruby Documentation](http://ruby-doc.org/)
##### [Ruby Documentation](https://ruby-doc.org/)

0 comments on commit 99cf22d

Please sign in to comment.