From 99cf22d7e00b9abe08a7eade1c4a777a0c4bea93 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 25 Jan 2024 10:49:18 +0100 Subject: [PATCH] try github workflow --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ .travis.yml | 7 ------- README.md | 22 +++++++++------------- 3 files changed, 33 insertions(+), 20 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..27b6e0a --- /dev/null +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 90a6c4c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: ruby -rvm: - - 2.2 - - jruby -secure: "LGmI9fsOuxn4LvDW9luoYaimGtjWMqOBkGROtTarO9kzUFgahVA+pk9/f2XhWzukefPJyq7DARRhLGOJot5gtG1H3q9gxkyNSeHtPLVlwOASoGixrm52KFjS5HTtpwlRB3TcgXqIWrnPUIuVNhlPZrujf3g0lrGfe+xAT/uJdMR0hvD71jjQ6zw86aDECJHETulSb2jh08PYXdRRPyHXmkZCHk7mK8wJEOP3uUg8FOwAMm5lesCaT1byuMLx+X1lj4rSsdvlc+xdDWgrEaD+TW2qXHNEukV4pYrEmvGNiM2TaqM8ogcUQC5JeHfXXf8OWfFESdFyTtrydTGSVAI9cMqZTHDZRAPMLi0QcXo1dL/0sZZs+2pNcmmBsGYj149qvK3R2NRC/TfQ2iBsQdjIFiEZdwZ8DDTcg+DqjKcwZCi5UA8pxP86nZV9Qy0+KNCPpTlkUkya2fZKSrCh8D8TQDKonNO2WKUVatdhR1010zQZn2Be0RLDgkOn7fUkHn+1Xj1niRwA4erAH1sFYFBUA6+jNlio9DZygbAk/WNqC2OpbM9V/8IlgEbQ9M9DSNj0eAG2ySP3FCYbmnymGUZUfvihrtGSMp5RsWvp0AGbXAxYZRVvtITv9WB/9HMNdqyeX8zxipIrZiDWIQw5iiqN5yoiop2Kyl1LYs1erYFD2RY=" -secure: "TDSXC9I2uv85jYNA0cNhkeielwDKhCwH3WEwPSJZ6C54lXciOM4v93OeP4qhxB370ZD3bcHVbWvHZgai505IJna+dznwD99QuIKG++VDpqpZhMxlnij7PC6KOZXogDM38hMSJw79nPc4Itt+0tFLHTNAIJKDjsFlPW2ELGAITIzMEI+WBO2IBmatcCV+gl3k6TPLRxS4oceTJsSWimaN4XrP5O+CI/oL2wkv7nMX0O2DDaWfyUJGXQAbqYE8m4XpJZw9kdw+sFKbyg4tHTejPPe3oOMiJ6fAR2OVaIZOS6c3mPVLJyAjul/lMuiFmEdgp2rZSrEvVqjMV1+voGHAYFh482ymKe1g9rC9o5uCw3dKCdfmJdXfbicPBCA53bivQoBicGjOseb2rWDHfgXBngXezlgQkhQN9c6vhurk96DpUUCObEopp796x9Q6atXeVTYNeMnjoeKjoWjgI4uAg7almST9CNe8LEZiK88p9zoHAkreQR6bu5EdwzrCDKz0JYFXIeeDPA9BP38h8iF9VAJv4dqt3T8qCD3kEv3BesbkDY8qG2fYf+QkF752KXC6EBIzH1n1rccztsozz04WRJuGUvyyKRjyXJ0B56mKbfNNcqH5o86FHPjehxjefbk9kQEPu/Ksvs4JB4kkGB4G2tdS6AUQUKWLGrTigCE+eVk=" -script: bundle exec rake test_testingbot \ No newline at end of file diff --git a/README.md b/README.md index ca3f6a0..6502824 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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= $ export TB_SECRET= @@ -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/)